1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Save ~3K of flash by re-ordering and packing the OSD_Entry structure.

This commit is contained in:
Dominic Clifton 2019-02-16 17:58:20 +01:00
parent 78f38daa4f
commit ba5b4c7375

View file

@ -63,7 +63,7 @@ typedef struct
const CMSEntryFuncPtr func;
void *data;
const uint8_t flags;
} OSD_Entry;
} __attribute__((packed)) OSD_Entry;
// Bits in flags
#define PRINT_VALUE 0x01 // Value has been changed, need to redraw