diff --git a/main/disp.cpp b/main/disp.cpp index bfbdad7..d26e31c 100644 --- a/main/disp.cpp +++ b/main/disp.cpp @@ -42,6 +42,7 @@ void vTaskDISP(void* pvParameters) OLED_DrawLogo(&U8G2_OLED); // draw logo u8g2_SendBuffer(&U8G2_OLED); vTaskDelay(2000); // allow 2sec for the user to see the logo + DISP_Page = Parameters.InitialPage; #endif #if defined(WITH_ST7789) || defined(WITH_ILI9341) // LCD_Start(); diff --git a/main/http.cpp b/main/http.cpp index 8a6f38e..2a5ab19 100644 --- a/main/http.cpp +++ b/main/http.cpp @@ -237,6 +237,13 @@ static void ParmForm_Other(httpd_req_t *Req) // produce HTML form for aircraft httpd_resp_sendstr_chunk(Req, "\">"); End_Control_Row(Req); + Begin_Control_Row(Req, "Initial Page"); + httpd_resp_sendstr_chunk(Req, ""); + End_Control_Row(Req); + httpd_resp_sendstr_chunk(Req, "
\n"); httpd_resp_sendstr_chunk(Req, "\n"); } diff --git a/main/parameters.h b/main/parameters.h index 8c014f8..47d43f1 100644 --- a/main/parameters.h +++ b/main/parameters.h @@ -125,6 +125,7 @@ class FlashParameters // 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 #if defined(WITH_BT_SPP) || defined(WITH_BLE_SPP) char BTname[16]; @@ -261,6 +262,7 @@ uint16_t StratuxPort; FreqPlan = DEFAULT_FreqPlan; // [0..5] PPSdelay = DEFAULT_PPSdelay; // [ms] PageMask = 0xFF; + InitialPage = 0; for(uint8_t Idx=0; Idx