AP_Baro: examples: BARO_generic: instantiate sitl to fix nullptr panic

This commit is contained in:
Kai Schoos 2020-09-16 20:50:16 +02:00 committed by Peter Barker
parent 15372e9213
commit 798c3fd0b7

View File

@ -32,6 +32,11 @@ static uint32_t timer;
static uint8_t counter; static uint8_t counter;
static AP_BoardConfig board_config; static AP_BoardConfig board_config;
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#include <SITL/SITL.h>
SITL::SITL sitl;
#endif
void setup(); void setup();
void loop(); void loop();