Updated the main app, removed old api end points, reworked the flash button actions (long press goes to the previous view)
This commit is contained in:
parent
65d43ae1d1
commit
97eba55e35
@ -65,8 +65,7 @@ void setup()
|
||||
sab.getWebServer().addApiRoutine("/sab/rtc/set/datetime", &(rtcSetTimeApi), &sab, WEBServer<WEBClient>::GET);
|
||||
sab.getWebServer().addApiRoutine("/sab/sdcard/size", &(sdCardSizeApi), &sab, WEBServer<WEBClient>::GET);
|
||||
sdCardApiPacket.pSab = &sab;sdCardApiPacket.pView = &v1p;
|
||||
sab.getWebServer().addApiRoutine("/sab/sdcard/unmount", &(sdCardUnmountApi), &sdCardApiPacket, WEBServer<WEBClient>::GET);
|
||||
sab.getWebServer().addApiRoutine("/sab/sdcard/mount", &(sdCardMountApi), &sdCardApiPacket, WEBServer<WEBClient>::GET);
|
||||
sab.getWebServer().addApiRoutine("/sab/sdcard/action", &(sdCardActionApi), &sdCardApiPacket, WEBServer<WEBClient>::GET);
|
||||
|
||||
sab.getWebServer().addApiRoutine("/esp/restart", &(espRestartApi), &sab, WEBServer<WEBClient>::GET);
|
||||
sab.getWebServer().addApiRoutine("/esp/reset", &(espResetApi), &sab, WEBServer<WEBClient>::GET);
|
||||
@ -108,8 +107,12 @@ void loop()
|
||||
sab.getIoManager().getPcf().digitalReadAll(vio.ioState);
|
||||
sab.getIoManager().getPcf().getPinModeAll(vio.ioMode);
|
||||
|
||||
if(ioStateChange) Serial.println(F("ISR triggered"));
|
||||
ioStateChange = false;
|
||||
if(ioStateChange)
|
||||
{
|
||||
sab.getScreenManager().forceRefresh();
|
||||
Serial.println(F("ISR triggered"));
|
||||
ioStateChange = false;
|
||||
}
|
||||
}
|
||||
|
||||
/*if(digitalRead(GPIO_0) == 0 && millis() - buttonMs > 500)
|
||||
@ -152,7 +155,7 @@ void loop()
|
||||
#endif
|
||||
}
|
||||
|
||||
//Run the differentes services
|
||||
//Run the different services
|
||||
sab.run();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user