AP_BLHeli: correct bi-dir mask enablement

This commit is contained in:
Andy Piper 2021-01-08 21:37:22 +00:00 committed by Peter Barker
parent 5120ebf2f6
commit 186c28c275

View File

@ -71,7 +71,7 @@ public:
}
bool has_bidir_dshot(uint8_t esc_index) const {
return channel_bidir_dshot_mask.get() & (1 << esc_index);
return channel_bidir_dshot_mask.get() & (1U << motor_map[esc_index]);
}
uint16_t get_bidir_dshot_mask() const { return channel_bidir_dshot_mask.get(); }