From 08a02651a68b4a576f42728f86df3e68b84149a9 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 7 Apr 2016 15:46:32 +0200 Subject: [PATCH] Fix Web Gpio control configuration --- WifiControlSensor/config.h | 4 ---- WifiControlSensor/config_device.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/WifiControlSensor/config.h b/WifiControlSensor/config.h index 82e2f81..32fb544 100644 --- a/WifiControlSensor/config.h +++ b/WifiControlSensor/config.h @@ -32,10 +32,6 @@ #define CONFIG_MQTT_CONTROLLED_GPIO {2, 13} #endif -#ifndef CONFIG_WEB_CONTROLLED_GPIO -#define CONFIG_WEB_CONTROLLED_GPIO 2 -#endif - #ifndef CONFIG_EEPROM_SIZE #define CONFIG_EEPROM_SIZE 256 #endif diff --git a/WifiControlSensor/config_device.h b/WifiControlSensor/config_device.h index de37cbc..9e4b47e 100644 --- a/WifiControlSensor/config_device.h +++ b/WifiControlSensor/config_device.h @@ -20,6 +20,11 @@ // Disable mDNS //#define CONFIG_ENABLE_POWER_SAVE + +//Web controlled GPIO +#define CONFIG_WEB_CONTROLLED_GPIO 2 + + /* DEFAULT VALUE ALSO DEFINED IN CONFIG.H */ // Time to sleep between 2 webserver request (increase it reduce battery usage but increase latency)