Adjust idle status display text switch time
This commit is contained in:
parent
61c399cd1e
commit
a672990f42
|
@ -127,7 +127,7 @@ void updateOLED(U8G2 u8g2, e_state state, String statusText, String statusTextRi
|
||||||
|
|
||||||
void updateOLED(U8G2 u8g2, e_state state) {
|
void updateOLED(U8G2 u8g2, e_state state) {
|
||||||
String time = DateTime.format(DateFormatter::TIME_ONLY);
|
String time = DateTime.format(DateFormatter::TIME_ONLY);
|
||||||
if (!digitalRead(PIN_INTERRUPT_CANCEL) || millis()%10000 < 5000)
|
if (!digitalRead(PIN_INTERRUPT_CANCEL) || millis()%20000 < 10000)
|
||||||
updateOLED(u8g2, state, time, AFRAPAY_REVISION);
|
updateOLED(u8g2, state, time, AFRAPAY_REVISION);
|
||||||
else
|
else
|
||||||
updateOLED(u8g2, state, time, WiFi.localIP().toString());
|
updateOLED(u8g2, state, time, WiFi.localIP().toString());
|
||||||
|
|
Loading…
Reference in a new issue