fixed loading button actions

This commit is contained in:
RaffaelW 2025-02-16 19:41:42 +01:00
parent 4db484e0f5
commit ba9f8f50c2

View file

@ -89,9 +89,9 @@ void ledBlink(int ms)
void onButtonPress() void onButtonPress()
{ {
config.begin("dmx", true);
ButtonAction action = static_cast<ButtonAction>(config.getUInt("button-action", DEFAULT_BUTTON_ACTION)); ButtonAction action = static_cast<ButtonAction>(config.getUInt("button-action", DEFAULT_BUTTON_ACTION));
Serial.print("Button pressed, action: "); config.end();
Serial.println(action);
switch (action) switch (action)
{ {