From 47c0c0fa071e7c6922343e99be254ded4a7b3d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 13 Mar 2017 23:18:02 +0100 Subject: [PATCH] Fix bug in AI_LIGHT defines --- code/espurna/config/arduino.h | 2 ++ code/espurna/relay.ino | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/espurna/config/arduino.h b/code/espurna/config/arduino.h index 23ee13ca..31a1de11 100644 --- a/code/espurna/config/arduino.h +++ b/code/espurna/config/arduino.h @@ -39,6 +39,8 @@ //#define WIFI_RELAY_NO //#define MQTT_RELAY //#define WIFI_RELAYS_BOARD_KIT +//#define AI_LIGHT +//#define LED_CONTROLLER //-------------------------------------------------------------------------------- // Features (values below are non-default values) diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index 6c3f5ec3..c13f9d4d 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -439,13 +439,13 @@ void relaySetupMQTT() { void relaySetup() { - #ifdef SONOFF_DUAL + #if defined(SONOFF_DUAL) // Two dummy relays for the dual _relays.push_back((relay_t) {0, 0}); _relays.push_back((relay_t) {0, 0}); - #elif AI_LIGHT + #elif defined(AI_LIGHT) // One dummy relay for the AI Thinker Light _relays.push_back((relay_t) {0, 0});