Skip to content

Commit

Permalink
Check all modes, not just active modes count. We set the array based on
Browse files Browse the repository at this point in the history
index in rc_modes.h:boxId_e
  • Loading branch information
Marcelo Bezerra committed Feb 17, 2025
1 parent fba00db commit 346b7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/fc/fc_msp_box.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ void packBoxModeFlags(boxBitmask_t * mspBoxModeFlags)
#endif

memset(mspBoxModeFlags, 0, sizeof(boxBitmask_t));
for (uint32_t i = 0; i < activeBoxIdCount; i++) {
for (uint32_t i = 0; i < CHECKBOX_ITEM_COUNT; i++) {
if (activeBoxes[activeBoxIds[i]]) {
bitArraySet(mspBoxModeFlags->bits, i);
}
Expand Down

0 comments on commit 346b7db

Please sign in to comment.