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});