forked from Akcelerometry_drgania_WMT/PI_mikrokontroler
Zmieniono wyzwalacz AP na UP + OK
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user