From 4bc371b50de60e017bb11429044c781dda38aace Mon Sep 17 00:00:00 2001 From: Pawel Jalocha Date: Sun, 6 Jun 2021 19:47:13 +0100 Subject: [PATCH] Squeeze in the InitialPage to keep compatibilty and alignment --- main/parameters.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main/parameters.h b/main/parameters.h index 47d43f1..56cdbfb 100644 --- a/main/parameters.h +++ b/main/parameters.h @@ -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];