Show 'WiFi: Connecting...' message before attempting connection

This commit is contained in:
Chad 2026-03-31 18:34:04 -05:00
parent aee3770d20
commit 0aa90bdce2

View file

@ -1168,6 +1168,12 @@ bool handleWifiPasswordTouch(int32_t x, int32_t y) {
preferences.putString("password", wifiPassword);
preferences.end();
lcd.fillScreen(TFT_BLACK);
lcd.setTextColor(TFT_WHITE, TFT_BLACK);
lcd.setFont(&fonts::DejaVu24);
lcd.setTextDatum(textdatum_t::middle_center);
lcd.drawString("WiFi: Connecting...", SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2);
WiFi.mode(WIFI_STA);
WiFi.begin(selectedSSID.c_str(), wifiPassword.c_str());