mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-27 18:23:57 -04:00
AP_HAL_Linux: remove register_timer_process with extra arg
This is not used anymore.
This commit is contained in:
parent
6bab28397a
commit
c170c2a847
@ -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)
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user