Skip to content

Commit

Permalink
AP_BLHeli: normalize ESC index correctly with iomcu
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Jan 4, 2025
1 parent 5f8a655 commit 8c92ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_BLHeli/AP_BLHeli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c92ab0

Please sign in to comment.