A fork of https://github.com/crosspoint-reader/crosspoint-reader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: WiFi error screen text clarifications (#612)

## Summary

* Clarify strings on Wifi connection error screens
* I have confirmed on device that these are short enough not to overflow
screen margins

## Additional Context

* Several screens give duplicative text (e.g., header "Connection
Failed" with contents text "Connection failed") or slightly confusing
text (header "Forget Network?" with text "Remove saved password?")

---

### AI Usage

Did you use AI tools to help write this code? **No**

authored by

Luke Stein and committed by
GitHub
12c20bb0 6b7065b9

+5 -5
+5 -5
src/activities/network/WifiSelectionActivity.cpp
··· 266 266 } 267 267 268 268 if (status == WL_CONNECT_FAILED || status == WL_NO_SSID_AVAIL) { 269 - connectionError = "Connection failed"; 269 + connectionError = "Error: General failure"; 270 270 if (status == WL_NO_SSID_AVAIL) { 271 - connectionError = "Network not found"; 271 + connectionError = "Error: Network not found"; 272 272 } 273 273 state = WifiSelectionState::CONNECTION_FAILED; 274 274 updateRequired = true; ··· 278 278 // Check for timeout 279 279 if (millis() - connectionStartTime > CONNECTION_TIMEOUT_MS) { 280 280 WiFi.disconnect(); 281 - connectionError = "Connection timeout"; 281 + connectionError = "Error: Connection timeout"; 282 282 state = WifiSelectionState::CONNECTION_FAILED; 283 283 updateRequired = true; 284 284 return; ··· 689 689 const auto height = renderer.getLineHeight(UI_10_FONT_ID); 690 690 const auto top = (pageHeight - height * 3) / 2; 691 691 692 - renderer.drawCenteredText(UI_12_FONT_ID, top - 40, "Forget Network?", true, EpdFontFamily::BOLD); 692 + renderer.drawCenteredText(UI_12_FONT_ID, top - 40, "Connection Failed", true, EpdFontFamily::BOLD); 693 693 694 694 std::string ssidInfo = "Network: " + selectedSSID; 695 695 if (ssidInfo.length() > 28) { ··· 697 697 } 698 698 renderer.drawCenteredText(UI_10_FONT_ID, top, ssidInfo.c_str()); 699 699 700 - renderer.drawCenteredText(UI_10_FONT_ID, top + 40, "Remove saved password?"); 700 + renderer.drawCenteredText(UI_10_FONT_ID, top + 40, "Forget network and remove saved password?"); 701 701 702 702 // Draw Cancel/Forget network buttons 703 703 const int buttonY = top + 80;