Browse Source

AL_HAL: Console output can be disabled

apm_2208
murata 3 years ago committed by Andrew Tridgell
parent
commit
15a39c1649
  1. 7
      libraries/AP_HAL/HAL.h

7
libraries/AP_HAL/HAL.h

@ -154,4 +154,11 @@ public: @@ -154,4 +154,11 @@ public:
#if AP_SIM_ENABLED && CONFIG_HAL_BOARD != HAL_BOARD_SITL
AP_HAL::SIMState *simstate;
#endif
#ifndef HAL_CONSOLE_DISABLED
# define DEV_PRINTF(fmt, args ...) do { hal.console->printf(fmt, ## args); } while(0)
#else
# define DEV_PRINTF(fmt, args ...)
#endif
};

Loading…
Cancel
Save