1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 00:05:28 +03:00

Add ZeroFArray Macro and make use of it in some parts

This commit is contained in:
JuliooCesarMDM 2022-10-04 17:18:01 -03:00
parent c30025b9fc
commit 59d81d6f6f
8 changed files with 13 additions and 12 deletions

View file

@ -350,7 +350,7 @@ void initActiveBoxIds(void)
void packBoxModeFlags(boxBitmask_t * mspBoxModeFlags)
{
uint8_t activeBoxes[CHECKBOX_ITEM_COUNT];
memset(activeBoxes, 0, sizeof(activeBoxes));
ZERO_FARRAY(activeBoxes);
// Serialize the flags in the order we delivered them, ignoring BOXNAMES and BOXINDEXES
// Requires new Multiwii protocol version to fix