DataFlash: allow to use functor

This commit is contained in:
Lucas De Marchi 2015-05-24 18:55:06 -03:00 committed by Andrew Tridgell
parent 384a3bfcc3
commit cd308b5e2f

View File

@ -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);