AP_Torqeedo: correct compilation with HAL_GCS_ENABLED is false

removes a larger block to avoid warnings about unused variables
This commit is contained in:
Peter Barker 2024-03-07 18:52:58 +11:00 committed by Peter Barker
parent 23982229fb
commit 4b97dba185
1 changed files with 2 additions and 0 deletions

View File

@ -1090,6 +1090,7 @@ void AP_Torqeedo::log_TRQD(bool force_logging)
}
_last_log_TRQD_ms = now_ms;
#if HAL_LOGGING_ENABLED || HAL_GCS_ENABLED
const bool health = healthy();
int16_t actual_motor_speed = get_motor_speed_limited();
@ -1121,6 +1122,7 @@ void AP_Torqeedo::log_TRQD(bool force_logging)
(unsigned long)_parse_success_count,
(unsigned long)_parse_error_count);
}
#endif // HAL_LOGGING_ENABLED || HAL_GCS_ENABLED
}
// send ESC telemetry