From f27ad17ea08c22e357c592e8e73c44a5294931b9 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Mon, 3 Jul 2023 18:26:27 -0700 Subject: [PATCH] AP_AccellCal: initialize HAL_INS_ACCELCAL_ENABLED for periph --- libraries/AP_AccelCal/AP_AccelCal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_AccelCal/AP_AccelCal.h b/libraries/AP_AccelCal/AP_AccelCal.h index 539a96f072..de6168ce62 100644 --- a/libraries/AP_AccelCal/AP_AccelCal.h +++ b/libraries/AP_AccelCal/AP_AccelCal.h @@ -5,7 +5,8 @@ #ifndef HAL_INS_ACCELCAL_ENABLED #if HAL_GCS_ENABLED -#define HAL_INS_ACCELCAL_ENABLED 1 +#include +#define HAL_INS_ACCELCAL_ENABLED AP_INERTIALSENSOR_ENABLED #else #define HAL_INS_ACCELCAL_ENABLED 0 #endif