From 14c559570f9548d0fc9c7a0bd6d93087e39afd70 Mon Sep 17 00:00:00 2001 From: denisfrench Date: Sat, 6 May 2017 18:22:54 +1000 Subject: [PATCH] Fix MQTT_RELAY compile error due missing #define BUTTON1_MODE --- code/espurna/config/hardware.h | 1 + 1 file changed, 1 insertion(+) diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 13c051a3..3bed1fd2 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -383,6 +383,7 @@ #define DEVICE "MQTT_RELAY" #define BUTTON1_PIN 0 #define BUTTON1_RELAY 1 + #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH #define RELAY1_PIN 12 #define RELAY1_PIN_INVERSE 0 #define LED1_PIN 16