Browse Source

DataFlash: allow to use functor

mission-4.1.18
Lucas De Marchi 10 years ago committed by Andrew Tridgell
parent
commit
cd308b5e2f
  1. 4
      libraries/DataFlash/DataFlash.h

4
libraries/DataFlash/DataFlash.h

@ -30,7 +30,9 @@ @@ -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…
Cancel
Save