Tools: AP_Periph: fix building of hwesc telem

This was broken by the APD support
This commit is contained in:
Michael du Breuil 2023-05-30 09:22:35 -07:00 committed by Peter Barker
parent 35dda812ae
commit 3fd2865857

View File

@ -1600,7 +1600,7 @@ void AP_Periph_FW::hwesc_telem_update()
const HWESC_Telem::HWESC &t = hwesc_telem.get_telem();
uavcan_equipment_esc_Status pkt {};
pkt.esc_index = g.esc_number;
pkt.esc_index = g.esc_number[0]; // only supports a single ESC
pkt.voltage = t.voltage;
pkt.current = t.current;
pkt.temperature = C_TO_KELVIN(MAX(t.mos_temperature, t.cap_temperature));