AP_Frsky_Telem: 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 c0d9201740
commit 0d64dc5a14
1 changed files with 1 additions and 1 deletions

View File

@ -567,7 +567,7 @@ uint32_t AP_Frsky_SPort_Passthrough::calc_ap_status(void)
{
// IMU temperature: offset -19, 0 means temp =< 19°, 63 means temp => 82°
uint8_t imu_temp = 0;
#if HAL_INS_ENABLED
#if AP_INERTIALSENSOR_ENABLED
imu_temp = (uint8_t) roundf(constrain_float(AP::ins().get_temperature(0), AP_IMU_TEMP_MIN, AP_IMU_TEMP_MAX) - AP_IMU_TEMP_MIN);
#endif