From a9982beacf184ccdc4bf1221852c900b0809537d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 7 Aug 2017 11:33:31 -0400 Subject: sched: Introduce sched_wake_tasks() function to wake up tasks Add function to indicate when tasks need to be run. This will allow the scheduler code to know if there are any tasks that need to be processed. Signed-off-by: Kevin O'Connor --- src/avr/usbserial.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/avr/usbserial.c') diff --git a/src/avr/usbserial.c b/src/avr/usbserial.c index 1b42d6d3..cc7bb12c 100644 --- a/src/avr/usbserial.c +++ b/src/avr/usbserial.c @@ -42,8 +42,10 @@ static void console_pop_input(uint8_t len) { uint8_t needcopy = receive_pos - len; - if (needcopy) + if (needcopy) { memmove(receive_buf, &receive_buf[len], needcopy); + sched_wake_tasks(); + } receive_pos = needcopy; } -- cgit v1.2.3-70-g09d2