Browse Source

Fix bug in AI_LIGHT defines

fastled
Xose Pérez 7 years ago
parent
commit
47c0c0fa07
2 changed files with 4 additions and 2 deletions
  1. +2
    -0
      code/espurna/config/arduino.h
  2. +2
    -2
      code/espurna/relay.ino

+ 2
- 0
code/espurna/config/arduino.h View File

@ -39,6 +39,8 @@
//#define WIFI_RELAY_NO //#define WIFI_RELAY_NO
//#define MQTT_RELAY //#define MQTT_RELAY
//#define WIFI_RELAYS_BOARD_KIT //#define WIFI_RELAYS_BOARD_KIT
//#define AI_LIGHT
//#define LED_CONTROLLER
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
// Features (values below are non-default values) // Features (values below are non-default values)


+ 2
- 2
code/espurna/relay.ino View File

@ -439,13 +439,13 @@ void relaySetupMQTT() {
void relaySetup() { void relaySetup() {
#ifdef SONOFF_DUAL
#if defined(SONOFF_DUAL)
// Two dummy relays for the dual // Two dummy relays for the dual
_relays.push_back((relay_t) {0, 0}); _relays.push_back((relay_t) {0, 0});
_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 // One dummy relay for the AI Thinker Light
_relays.push_back((relay_t) {0, 0}); _relays.push_back((relay_t) {0, 0});


Loading…
Cancel
Save