Skip to content

Commit 99cb8e0

Browse files
committed
hw: restore sonoff-mini switch actions defaults
1 parent f497312 commit 99cb8e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

code/espurna/config/hardware.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,12 @@
369369
#define BUTTON1_PIN 0
370370
#define BUTTON1_CONFIG BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
371371
#define BUTTON1_RELAY 1
372+
372373
#define BUTTON2_PIN 4
373374
#define BUTTON2_CONFIG BUTTON_SWITCH | BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH
374375
#define BUTTON2_RELAY 1
376+
#define BUTTON2_PRESS BUTTON_ACTION_ON
377+
#define BUTTON2_RELEASE BUTTON_ACTION_OFF
375378

376379
// Relays
377380
#define RELAY1_PIN 12

0 commit comments

Comments
 (0)