AP_Airspeed: allow compilation with HAL_LOGGING_ENABLED false

This commit is contained in:
Peter Barker 2023-07-14 10:58:04 +10:00 committed by Andrew Tridgell
parent 7cf033efd9
commit 43ed929b0a
1 changed files with 2 additions and 0 deletions

View File

@ -755,6 +755,7 @@ void AP_Airspeed::handle_external(const AP_ExternalAHRS::airspeed_data_message_t
}
#endif
#if HAL_LOGGING_ENABLED
// @LoggerMessage: HYGR
// @Description: Hygrometer data
// @Field: TimeUS: Time since system startup
@ -812,6 +813,7 @@ void AP_Airspeed::Log_Airspeed()
#endif
}
}
#endif
bool AP_Airspeed::use(uint8_t i) const
{