From 2b903d20b4d6e86a74481d39587df2c69e8a1a8e Mon Sep 17 00:00:00 2001 From: Bob Long Date: Tue, 10 Sep 2024 12:49:31 +1000 Subject: [PATCH] AP_ESC_Telem: tidy old calls to _telem_data When #27755 was first opened, #26252 had not been merged yet. #26252 refactored a bit, but the change was not applied to #27755. This commit fixes that. This should not change the behavior of the code. --- libraries/AP_ESC_Telem/AP_ESC_Telem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_ESC_Telem/AP_ESC_Telem.cpp b/libraries/AP_ESC_Telem/AP_ESC_Telem.cpp index 02c2f8f205..17f6279152 100644 --- a/libraries/AP_ESC_Telem/AP_ESC_Telem.cpp +++ b/libraries/AP_ESC_Telem/AP_ESC_Telem.cpp @@ -568,16 +568,16 @@ void AP_ESC_Telem::update_telem_data(const uint8_t esc_index, const AP_ESC_Telem #if AP_EXTENDED_ESC_TELEM_ENABLED if (data_mask & AP_ESC_Telem_Backend::TelemetryType::INPUT_DUTY) { - _telem_data[esc_index].input_duty = new_data.input_duty; + telemdata.input_duty = new_data.input_duty; } if (data_mask & AP_ESC_Telem_Backend::TelemetryType::OUTPUT_DUTY) { - _telem_data[esc_index].output_duty = new_data.output_duty; + telemdata.output_duty = new_data.output_duty; } if (data_mask & AP_ESC_Telem_Backend::TelemetryType::FLAGS) { - _telem_data[esc_index].flags = new_data.flags; + telemdata.flags = new_data.flags; } if (data_mask & AP_ESC_Telem_Backend::TelemetryType::POWER_PERCENTAGE) { - _telem_data[esc_index].power_percentage = new_data.power_percentage; + telemdata.power_percentage = new_data.power_percentage; } #endif //AP_EXTENDED_ESC_TELEM_ENABLED