mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
DataFlash: use functor macros
Functor is not yet being used but let's make is macro fallback to the previous Delegate implementation for easy of transition between the two.
This commit is contained in:
parent
6ae2591cad
commit
c894a1349e
@ -126,7 +126,7 @@ void DataFlash_File::Init(const struct LogStructure *structure, uint8_t num_type
|
||||
}
|
||||
_writebuf_head = _writebuf_tail = 0;
|
||||
_initialised = true;
|
||||
hal.scheduler->register_io_process(AP_HAL_MEMBERPROC(&DataFlash_File::_io_timer));
|
||||
hal.scheduler->register_io_process(FUNCTOR_BIND_MEMBER(&DataFlash_File::_io_timer, void));
|
||||
}
|
||||
|
||||
// return true for CardInserted() if we successfully initialised
|
||||
|
Loading…
Reference in New Issue
Block a user