AP_HAL_Linux: remove register_timer_process with extra arg

This is not used anymore.
This commit is contained in:
Lucas De Marchi 2017-07-31 12:34:16 -07:00
parent 6bab28397a
commit c170c2a847
2 changed files with 4 additions and 11 deletions

View File

@ -184,19 +184,13 @@ void Scheduler::register_timer_process(AP_HAL::MemberProc proc)
}
}
if (_num_timer_procs < LINUX_SCHEDULER_MAX_TIMER_PROCS) {
_timer_proc[_num_timer_procs] = proc;
_num_timer_procs++;
} else {
if (_num_timer_procs >= LINUX_SCHEDULER_MAX_TIMER_PROCS) {
hal.console->printf("Out of timer processes\n");
return;
}
}
bool Scheduler::register_timer_process(AP_HAL::MemberProc proc,
uint8_t freq_div)
{
register_timer_process(proc);
return false;
_timer_proc[_num_timer_procs] = proc;
_num_timer_procs++;
}
void Scheduler::register_io_process(AP_HAL::MemberProc proc)

View File

@ -31,7 +31,6 @@ public:
uint16_t min_time_ms);
void register_timer_process(AP_HAL::MemberProc);
bool register_timer_process(AP_HAL::MemberProc, uint8_t);
void register_io_process(AP_HAL::MemberProc);
void suspend_timer_procs();
void resume_timer_procs();