some fixes after first hardware-test
This commit is contained in:
parent
3a151703a4
commit
4fe7d9cb81
@ -59,8 +59,7 @@ public:
|
||||
}
|
||||
lastState = currentState;
|
||||
lastMillis = currentMillis;
|
||||
}
|
||||
if (lastState && duration >= 3000 && !pressedLong) {
|
||||
} else if (lastState && duration >= 3000 && !pressedLong) {
|
||||
pressedLong = true;
|
||||
callback(BUTTON_PRESSED_LONG);
|
||||
}
|
||||
|
||||
@ -22,6 +22,7 @@ void setup() {
|
||||
Serial.println("\n\n\nStartup!");
|
||||
|
||||
beepSetup();
|
||||
button.setup();
|
||||
display.setup();
|
||||
mode.init();
|
||||
serverSetup();
|
||||
@ -31,6 +32,7 @@ void loop() {
|
||||
stepMode();
|
||||
readConsole();
|
||||
wifiLoop();
|
||||
button.loop();
|
||||
}
|
||||
|
||||
void stepMode() {
|
||||
@ -56,7 +58,7 @@ void buttonCallback(const ButtonEvent event) {
|
||||
if (event == BUTTON_PRESSED) {
|
||||
mode.buttonOK();
|
||||
}
|
||||
if (BUTTON_PRESSED_LONG) {
|
||||
if (event == BUTTON_PRESSED_LONG) {
|
||||
mode.buttonESC();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user