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)