mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
HAL_Linux: fixed functor comparison
This commit is contained in:
parent
96b921d4cc
commit
7e264b44df
@ -250,7 +250,7 @@ void LinuxScheduler::_run_timers(bool called_from_timer_thread)
|
||||
}
|
||||
// now call the timer based drivers
|
||||
for (int i = 0; i < _num_timer_procs; i++) {
|
||||
if (_timer_proc[i] != NULL) {
|
||||
if (_timer_proc[i]) {
|
||||
_timer_proc[i]();
|
||||
}
|
||||
}
|
||||
@ -299,7 +299,7 @@ void LinuxScheduler::_run_io(void)
|
||||
|
||||
// now call the IO based drivers
|
||||
for (int i = 0; i < _num_io_procs; i++) {
|
||||
if (_io_proc[i] != NULL) {
|
||||
if (_io_proc[i]) {
|
||||
_io_proc[i]();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user