AL_HAL: Console output can be disabled

This commit is contained in:
murata 2022-03-21 18:34:45 +09:00 committed by Andrew Tridgell
parent 234bb5409d
commit 15a39c1649

View File

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