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:
parent
fbec959f13
commit
3362fe1de0
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user