Skip to content

Commit

Permalink
HAL_Linux: use a loop for serial tick
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Dec 14, 2020
1 parent bf546f3 commit 348dfef
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions libraries/AP_HAL_Linux/Scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,9 @@ void Scheduler::_run_io(void)
void Scheduler::_run_uarts()
{
// process any pending serial bytes
hal.serial(0)->_timer_tick();
hal.serial(3)->_timer_tick();
hal.serial(1)->_timer_tick();
hal.serial(2)->_timer_tick();
hal.serial(4)->_timer_tick();
hal.serial(5)->_timer_tick();
hal.serial(6)->_timer_tick();
hal.serial(7)->_timer_tick();
hal.serial(8)->_timer_tick();
for (uint8_t i=0;i<hal.num_serial; i++) {
hal.serial(i)->_timer_tick();
}
}

void Scheduler::_rcin_task()
Expand Down

0 comments on commit 348dfef

Please sign in to comment.