From ba9f8f50c28fec687adf2a03ba02c62965dd17d7 Mon Sep 17 00:00:00 2001 From: RaffaelW Date: Sun, 16 Feb 2025 19:41:42 +0100 Subject: [PATCH] fixed loading button actions --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c9b92be..81e1c87 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -89,9 +89,9 @@ void ledBlink(int ms) void onButtonPress() { + config.begin("dmx", true); ButtonAction action = static_cast(config.getUInt("button-action", DEFAULT_BUTTON_ACTION)); - Serial.print("Button pressed, action: "); - Serial.println(action); + config.end(); switch (action) {