From 6d7fccecf0d9705b40435b0fd92b22247a96f80c Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 30 Dec 2024 16:14:33 +1100 Subject: [PATCH] AP_DroneCAN: correct compilation when AP_DRONECAN_VOLZ_FEEDBACK_ENABLED enabled --- libraries/AP_DroneCAN/AP_DroneCAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_DroneCAN/AP_DroneCAN.cpp b/libraries/AP_DroneCAN/AP_DroneCAN.cpp index c0707ebe79d8c..6895a116bd1c2 100644 --- a/libraries/AP_DroneCAN/AP_DroneCAN.cpp +++ b/libraries/AP_DroneCAN/AP_DroneCAN.cpp @@ -1448,7 +1448,7 @@ void AP_DroneCAN::handle_actuator_status_Volz(const CanardRxTransfer& transfer, .voltage = msg.voltage * 0.2, .current = msg.current * 0.025, .duty_cycle = msg.motor_pwm * (100.0/255.0), - .motor_temperature_cdeg = (int16_t(msg.motor_temperature) - 50)) * 100, + .motor_temperature_cdeg = (int16_t(msg.motor_temperature) - 50) * 100, .valid_types = AP_Servo_Telem::TelemetryData::Types::MEASURED_POSITION | AP_Servo_Telem::TelemetryData::Types::VOLTAGE | AP_Servo_Telem::TelemetryData::Types::CURRENT |