diff --git a/main/disp.cpp b/main/disp.cpp index 77f6a25..b881b48 100644 --- a/main/disp.cpp +++ b/main/disp.cpp @@ -166,9 +166,10 @@ void vTaskDISP(void* pvParameters) // else // #endif // skip not enabled pages - while ( (U8G2_OLED_PAGES_ENABLED & (1 << DISP_Page)) == 0 ) { - DISP_Page++; - if(DISP_Page>=DISP_Pages) DISP_Page=0; + if(Parameters.PageMask) + { while( ((Parameters.PageMask>>DISP_Page)&1) == 0 ) + { DISP_Page++; + if(DISP_Page>=DISP_Pages) DISP_Page=0; } } #ifdef DEBUG_PRINT diff --git a/main/parameters.h b/main/parameters.h index 2ef250b..976e414 100644 --- a/main/parameters.h +++ b/main/parameters.h @@ -100,6 +100,8 @@ class FlashParameters // char Copilot[16] // char Category[16] + uint32_t PageMask; + #ifdef WITH_BT_SPP char BTname[16]; // char BTpin[16]; @@ -198,6 +200,7 @@ class FlashParameters #endif for(uint8_t Idx=0; Idx