AP_Compass: split AP_HAL_SITL and AP_SIM_ENABLED

This commit is contained in:
Peter Barker 2021-10-30 12:15:48 +11:00 committed by Peter Barker
parent daedebce2e
commit 57f8b7c2a8

View File

@ -71,7 +71,7 @@
#define MAX_CONNECTED_MAGS (COMPASS_MAX_UNREG_DEV+COMPASS_MAX_INSTANCES)
#ifndef AP_SIM_COMPASS_ENABLED
#define AP_SIM_COMPASS_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
#define AP_SIM_COMPASS_ENABLED AP_SIM_ENABLED
#endif
#include "CompassCalibrator.h"