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) {