diff --git a/libraries/AP_HAL_Linux/Scheduler.cpp b/libraries/AP_HAL_Linux/Scheduler.cpp index 078564627a..fb85f02477 100644 --- a/libraries/AP_HAL_Linux/Scheduler.cpp +++ b/libraries/AP_HAL_Linux/Scheduler.cpp @@ -227,7 +227,7 @@ void Scheduler::resume_timer_procs() _timer_semaphore.give(); } -void Scheduler::_run_timers(bool called_from_timer_thread) +void Scheduler::_run_timers() { int i; @@ -300,7 +300,7 @@ void Scheduler::_timer_task() } next_run_usec += 1000; // run registered timers - _run_timers(true); + _run_timers(); #if HAL_LINUX_UARTS_ON_TIMER_THREAD /* diff --git a/libraries/AP_HAL_Linux/Scheduler.h b/libraries/AP_HAL_Linux/Scheduler.h index ae9e471939..4b61d7a88d 100644 --- a/libraries/AP_HAL_Linux/Scheduler.h +++ b/libraries/AP_HAL_Linux/Scheduler.h @@ -102,7 +102,7 @@ private: void _uart_task(); void _tonealarm_task(); - void _run_timers(bool called_from_timer_thread); + void _run_timers(); void _run_io(); void _run_uarts(); bool _register_timesliced_proc(AP_HAL::MemberProc, uint8_t);