AP_InertialSensor: rename HAL_INS_ENABLED to AP_INERTIALSENSOR_ENABLED

This commit is contained in:
Peter Barker 2022-12-23 12:27:14 +11:00 committed by Andrew Tridgell
parent 1725e794ed
commit ee98d75173
2 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,7 @@
#include <AP_Common/AP_Common.h>
#include <AP_HAL/AP_HAL.h>
#if HAL_INS_ENABLED
#if AP_INERTIALSENSOR_ENABLED
#include <AP_HAL/I2CDevice.h>
#include <AP_HAL/SPIDevice.h>
#include <AP_HAL/DSP.h>
@ -2516,5 +2516,4 @@ AP_InertialSensor &ins()
};
#endif //#if HAL_INS_ENABLED
#endif // AP_INERTIALSENSOR_ENABLED

View File

@ -1,6 +1,6 @@
#include "AP_InertialSensor.h"
#if HAL_INS_ENABLED
#if AP_INERTIALSENSOR_ENABLED
#include <GCS_MAVLink/GCS.h>
#include <AP_Logger/AP_Logger.h>
@ -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