mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 07:38:28 -04:00
AP_common: Add stdio.h when using SITL_printf
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
4ce051af82
commit
9693da751e
@ -173,6 +173,7 @@ bool is_bounded_int32(int32_t value, int32_t lower_bound, int32_t upper_bound);
|
|||||||
useful debugging macro for SITL
|
useful debugging macro for SITL
|
||||||
*/
|
*/
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
|
#include <stdio.h>
|
||||||
#define SITL_printf(fmt, args ...) do { ::printf("%s(%u): " fmt, __FILE__, __LINE__, ##args); } while(0)
|
#define SITL_printf(fmt, args ...) do { ::printf("%s(%u): " fmt, __FILE__, __LINE__, ##args); } while(0)
|
||||||
#else
|
#else
|
||||||
#define SITL_printf(fmt, args ...)
|
#define SITL_printf(fmt, args ...)
|
||||||
|
Loading…
Reference in New Issue
Block a user