Skip to content
Snippets Groups Projects
Commit 0cec5436 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

SITL: run the timer_scheduler() when there are no SITL packets

otherwise we can block in the ADC code
parent b103b949
No related branches found
No related tags found
No related merge requests found
...@@ -269,12 +269,14 @@ static void timer_handler(int signum) ...@@ -269,12 +269,14 @@ static void timer_handler(int signum)
if (update_count == 0) { if (update_count == 0) {
sitl_update_gps(0, 0, 0, 0, 0, false); sitl_update_gps(0, 0, 0, 0, 0, false);
timer_scheduler.run();
SREG = oldSREG; SREG = oldSREG;
in_timer = false; in_timer = false;
return; return;
} }
if (update_count == last_update_count) { if (update_count == last_update_count) {
timer_scheduler.run();
SREG = oldSREG; SREG = oldSREG;
in_timer = false; in_timer = false;
return; return;
......
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