diff --git a/libraries/AP_InertialSensor/AP_InertialSensor.cpp b/libraries/AP_InertialSensor/AP_InertialSensor.cpp index 9f971ba0e5..ec62ac3897 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor.cpp @@ -2,7 +2,7 @@ #include #include -#if HAL_INS_ENABLED +#if AP_INERTIALSENSOR_ENABLED #include #include #include @@ -2516,5 +2516,4 @@ AP_InertialSensor &ins() }; -#endif //#if HAL_INS_ENABLED - +#endif // AP_INERTIALSENSOR_ENABLED diff --git a/libraries/AP_InertialSensor/BatchSampler.cpp b/libraries/AP_InertialSensor/BatchSampler.cpp index a7914d5a00..a0d8e786b5 100644 --- a/libraries/AP_InertialSensor/BatchSampler.cpp +++ b/libraries/AP_InertialSensor/BatchSampler.cpp @@ -1,6 +1,6 @@ #include "AP_InertialSensor.h" -#if HAL_INS_ENABLED +#if AP_INERTIALSENSOR_ENABLED #include #include @@ -282,4 +282,4 @@ void AP_InertialSensor::BatchSampler::sample(uint8_t _instance, AP_InertialSenso data_write_offset++; // may unblock the reading process #endif } -#endif //#if HAL_INS_ENABLED +#endif //#if AP_INERTIALSENSOR_ENABLED