From 72da00126a09bdf888a44e665dc5dffe7526a4e8 Mon Sep 17 00:00:00 2001 From: irmishappy <48766654+irmishappy@users.noreply.github.com> Date: Wed, 20 Mar 2019 20:21:25 +0200 Subject: [PATCH] update GREEN_ESP8266RELAY button1 mode Mine was not working till I added BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH --- code/espurna/config/hardware.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 644aeb17..dc766f9d 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -2239,7 +2239,7 @@ // Buttons // Not a button but input via Optocoupler #define BUTTON1_PIN 5 - #define BUTTON1_MODE BUTTON_PUSHBUTTON + #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH #define BUTTON1_RELAY 1 // Relays