Skip to content
Snippets Groups Projects
Commit 7d96d5f0 authored by rahix's avatar rahix
Browse files

fix(serial): Fix serial_flush_from_isr always yielding


By passing `&resched` instead of just `resched`, the internal comparison
in FreeRTOS would always evaluate to rescheduling.  Curiously, only some
GCC versions emit the -Waddress warning for this while others do not ...

Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 67cb31c6
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ static void serial_flush_from_isr(void)
taskEXIT_CRITICAL_FROM_ISR(basepri);
portYIELD_FROM_ISR(&resched);
portYIELD_FROM_ISR(resched);
}
static void serial_flush_from_thread(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