mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
DataFlash: allow to use functor
This commit is contained in:
parent
384a3bfcc3
commit
cd308b5e2f
@ -30,7 +30,9 @@
|
||||
class DataFlash_Class
|
||||
{
|
||||
public:
|
||||
#if APM_BUILD_DELEGATES
|
||||
#if APM_BUILD_FUNCTOR
|
||||
FUNCTOR_TYPEDEF(print_mode_fn, void, AP_HAL::BetterStream*, uint8_t);
|
||||
#elif APM_BUILD_DELEGATES
|
||||
typedef DELEGATE_FUNCTION2(void, AP_HAL::BetterStream*, uint8_t) print_mode_fn;
|
||||
#else
|
||||
typedef void (*print_mode_fn)(AP_HAL::BetterStream *, uint8_t);
|
||||
|
Loading…
Reference in New Issue
Block a user