AP_WindVane: correct compilation when HAL_LOGGING_ENABLED is false

This commit is contained in:
Peter Barker 2024-01-10 15:21:23 +11:00 committed by Andrew Tridgell
parent 8bdd0294b8
commit 9a853b3d4a
1 changed files with 2 additions and 0 deletions

View File

@ -372,6 +372,7 @@ void AP_WindVane::update()
_direction_true = _direction_true_raw;
}
#if HAL_LOGGING_ENABLED
// @LoggerMessage: WIND
// @Description: Windvane readings
// @Field: TimeUS: Time since system startup
@ -390,6 +391,7 @@ void AP_WindVane::update()
_speed_apparent_raw,
_speed_apparent,
_speed_true);
#endif
}