diff --git a/sonoff/user_config.h b/sonoff/user_config.h index 4e0bb7a1c..ac027e4a6 100644 --- a/sonoff/user_config.h +++ b/sonoff/user_config.h @@ -163,7 +163,7 @@ // -- Sensor code selection ----------------------- #define USE_ADC_VCC // Display Vcc in Power status. Disable for use as Analog input on selected devices -#define USE_DS18x20 // Optional for more than one DS18B20 and/or DS18S20 sensors using library OneWire (+1.5k code) +//#define USE_DS18x20 // Optional for more than one DS18B20 and/or DS18S20 sensors using library OneWire (+1.5k code) #define USE_I2C // I2C using library wire (+10k code, 0.2k mem) - Disable by // #define USE_SHT // Add I2C emulating code for SHT1X sensor diff --git a/sonoff/xdrv_light.ino b/sonoff/xdrv_light.ino index d62bc6176..478ef70be 100644 --- a/sonoff/xdrv_light.ino +++ b/sonoff/xdrv_light.ino @@ -241,6 +241,14 @@ void AriluxRfInit() attachInterrupt(pin[GPIO_ARIRFRCV], AriluxRfInterrupt, CHANGE); } } + +void AriluxRfDisable() +{ + if ((pin[GPIO_ARIRFRCV] < 99) && (pin[GPIO_LED2] < 99)) { + digitalWrite(pin[GPIO_LED2], bitRead(led_inverted, 1)); // Turn off RF + detachInterrupt(pin[GPIO_ARIRFRCV]); + } +} #endif // USE_ARILUX_RF /*********************************************************************************************\