feature: adding a default wifi option

This commit is contained in:
dpoulter 2026-01-11 10:43:27 +01:00
parent 145c7338a9
commit a2d4e6936f
2 changed files with 2 additions and 5 deletions

View File

@ -88,9 +88,6 @@ void OpdsBookBrowserActivity::loop() {
// Handle WiFi check state - only Back works // Handle WiFi check state - only Back works
if (state == BrowserState::CHECK_WIFI) { if (state == BrowserState::CHECK_WIFI) {
if (mappedInput.wasReleased(MappedInputManager::Button::Back)) { if (mappedInput.wasReleased(MappedInputManager::Button::Back)) {
if (subActivity) {
exitActivity();
}
onGoHome(); onGoHome();
} }
return; return;

View File

@ -185,8 +185,8 @@ void WifiConnectionsActivity::deleteNetwork() {
const auto& credentials = WIFI_STORE.getCredentials(); const auto& credentials = WIFI_STORE.getCredentials();
const size_t totalItems = credentials.size() + 1; const size_t totalItems = credentials.size() + 1;
if (selectorIndex > credentials.size()) { if (selectorIndex >= totalItems) {
selectorIndex = credentials.size(); selectorIndex = totalItems - 1;
} }
state = State::LIST; state = State::LIST;