diff --git a/src/main.cpp b/src/main.cpp index c91c3b0..ae78d9e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -174,6 +174,7 @@ void setup() display.display(); pinMode(BUTTON, INPUT_PULLUP); + buttonLastState = digitalRead(BUTTON); // Setup SPIFFS if (!SPIFFS.begin())