From c557ba38e52a8b166f067c3dcbaa1b2fb7f06934 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sat, 4 Jan 2025 10:43:33 +0000 Subject: [PATCH] AP_BLHeli: normalize ESC index correctly with iomcu --- libraries/AP_BLHeli/AP_BLHeli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_BLHeli/AP_BLHeli.cpp b/libraries/AP_BLHeli/AP_BLHeli.cpp index 3b0a32c898..c2856a9215 100644 --- a/libraries/AP_BLHeli/AP_BLHeli.cpp +++ b/libraries/AP_BLHeli/AP_BLHeli.cpp @@ -1469,7 +1469,7 @@ void AP_BLHeli::read_telemetry_packet(void) uint8_t normalized_motor_idx = motor_idx - chan_offset; #if HAL_WITH_IO_MCU - if (AP_BoardConfig::io_dshot()) { + if (AP_BoardConfig::io_enabled()) { normalized_motor_idx = motor_idx; } #endif