mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-05-19 10:32:56 +00:00
fixed loading button actions
This commit is contained in:
parent
4db484e0f5
commit
ba9f8f50c2
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue