AP_Compass: split AP_HAL_SITL and AP_SIM_ENABLED
This commit is contained in:
parent
daedebce2e
commit
57f8b7c2a8
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user