From 7e25978455648a3e77c709e3c66baaa5af4159d5 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Wed, 1 Jun 2016 01:49:04 +0200 Subject: [PATCH] Disable switch off of internal LED when saving power It may disable GPIO used by sensors --- WifiControlSensor/WifiControlSensor.ino | 2 -- WifiControlSensor/config_device.h | 1 - 2 files changed, 3 deletions(-) diff --git a/WifiControlSensor/WifiControlSensor.ino b/WifiControlSensor/WifiControlSensor.ino index 0344e4c..7616309 100644 --- a/WifiControlSensor/WifiControlSensor.ino +++ b/WifiControlSensor/WifiControlSensor.ino @@ -249,8 +249,6 @@ void setup() { } #ifdef CONFIG_ENABLE_POWER_SAVE wifi_set_sleep_type(LIGHT_SLEEP_T); - pinMode(LED_BUILTIN, OUTPUT); - digitalWrite(LED_BUILTIN, HIGH); //Active at low level #endif } diff --git a/WifiControlSensor/config_device.h b/WifiControlSensor/config_device.h index f126d0f..51ec201 100644 --- a/WifiControlSensor/config_device.h +++ b/WifiControlSensor/config_device.h @@ -16,7 +16,6 @@ #define CONFIG_DHT_PIN 5 // Enable light sleep to save some power (http://bbs.espressif.com/viewtopic.php?f=6&t=133&p=485&hilit=sleep+modem#p485) -// Switch off internal LED //#define CONFIG_ENABLE_POWER_SAVE // Disable mDNS can also save power