Skip to content

Commit

Permalink
Squeeze in the InitialPage to keep compatibilty and alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
pjalocha committed Jun 6, 2021
1 parent bc49ca3 commit 4bc371b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main/parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,13 @@ class FlashParameters
// char Copilot[16]
// char Category[16]

uint32_t PageMask; // enable/disable individual pages on the LCD or OLED screen
uint8_t InitialPage; // the first page to show after boot
union
{ uint32_t Page;
struct
{ uint32_t PageMask:27; // enable/disable individual pages on the LCD or OLED screen
uint8_t InitialPage:5; // the first page to show after boot
} ;
} ;

#if defined(WITH_BT_SPP) || defined(WITH_BLE_SPP)
char BTname[16];
Expand Down

0 comments on commit 4bc371b

Please sign in to comment.