switch thread instead of exiting context

lpm_sleep is always being called from within a thread context, not
from an isr context, therefore it should use thread_yield instead of
cpu_switch_context_exit.
This commit is contained in:
Ludwig Ortmann 2013-10-26 14:45:51 +02:00
parent fbec959f13
commit 3362fe1de0

View File

@ -66,7 +66,7 @@ void _native_handle_uart0_input()
uart0_notify_thread();
_native_in_isr = 0;
cpu_switch_context_exit();
thread_yield();
}
int _native_set_uart_fds(void)