diff --git a/src/main.cpp b/src/main.cpp index 5d90aa2..206af86 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -399,13 +399,13 @@ void loop() { if(settings.isPressed(3)) settingsDevice(); // DOWN if(settings.isPressed(1)) toogleMode(); // UP - if (settings.readBtnUp() && settings.readBtnDown()) { + if (settings.readBtnUp() && settings.readBtnOk()) { ESP_LOGI(TAG_MAIN, "Manual AP Mode trigger"); wifi.startCaptivePortal(); display.clear(); display.textCenter(1, "AP MODE"); display.textCenter(2, "192.168.4.1"); - while(settings.readBtnUp() && settings.readBtnDown()) { + while(settings.readBtnUp() && settings.readBtnOk()) { Watchdog::feed(); delay(50); }