Skip to content

Commit 996a8e9

Browse files
committed
fix bidir dshot for nxp xrt boards
1 parent cfe4cc8 commit 996a8e9

File tree

1 file changed

+1
-1
lines changed
  • platforms/nuttx/src/px4/nxp/imxrt/dshot

1 file changed

+1
-1
lines changed

platforms/nuttx/src/px4/nxp/imxrt/dshot/dshot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ int up_bdshot_num_erpm_ready(void)
425425
for (unsigned i = 0; i < DSHOT_TIMERS; ++i) {
426426
// We only check that data has been received, rather than if it's valid.
427427
// This ensures data is published even if one channel has bit errors.
428-
if (bdshot_recv_mask & (1 << i)) {
428+
if (bdshot_parsed_recv_mask & (1 << i)) {
429429
++num_ready;
430430
}
431431
}

0 commit comments

Comments
 (0)