AP_Torqeedo: correct compilation when GCS not available

this variable is unused in that case
This commit is contained in:
Peter Barker 2024-02-15 11:40:30 +11:00 committed by Peter Barker
parent 492bbe4830
commit 594f96670a
1 changed files with 1 additions and 0 deletions

View File

@ -345,6 +345,7 @@ void AP_Torqeedo::report_error_codes()
// report display system errors
const char* msg_prefix = "Torqeedo:";
(void)msg_prefix; // sometimes unused when HAL_GCS_ENABLED is false
if (_display_system_state.flags.set_throttle_stop) {
GCS_SEND_TEXT(MAV_SEVERITY_CRITICAL, "%s zero throttle required", msg_prefix);
}