AP_Periph: correct build for EFI can

no longer an array
This commit is contained in:
Peter Barker 2022-10-05 17:56:09 +11:00 committed by Andrew Tridgell
parent d3a86e560f
commit 3cbd018877
1 changed files with 1 additions and 1 deletions

View File

@ -2527,7 +2527,7 @@ void AP_Periph_FW::can_efi_update(void)
// assume single set of cylinder status
pkt.cylinder_status.len = 1;
auto &c = pkt.cylinder_status.data[0];
const auto &state_c = state.cylinder_status[0];
const auto &state_c = state.cylinder_status;
c.ignition_timing_deg = state_c.ignition_timing_deg;
c.injection_time_ms = state_c.injection_time_ms;
c.cylinder_head_temperature = state_c.cylinder_head_temperature;