Skip to content
Snippets Groups Projects
Commit 3362fe1d authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

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.
parent fbec959f
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ void _native_handle_uart0_input() ...@@ -66,7 +66,7 @@ void _native_handle_uart0_input()
uart0_notify_thread(); uart0_notify_thread();
_native_in_isr = 0; _native_in_isr = 0;
cpu_switch_context_exit(); thread_yield();
} }
int _native_set_uart_fds(void) int _native_set_uart_fds(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment