diff --git a/main/User_config.h b/main/User_config.h index 136a2f610f..859c7df49e 100644 --- a/main/User_config.h +++ b/main/User_config.h @@ -148,7 +148,9 @@ const byte mac[] = {0xDE, 0xED, 0xBA, 0xFE, 0x54, 0x95}; //W5100 ethernet shield # define mqtt_topic_max_size 150 # ifndef mqtt_max_packet_size # ifdef MQTT_HTTPS_FW_UPDATE -# define CHECK_OTA_UPDATE true // enable to check for the presence of a new version for your environment on Github +# ifndef CHECK_OTA_UPDATE +# define CHECK_OTA_UPDATE true // enable to check for the presence of a new version for your environment on Github +# endif # define mqtt_max_packet_size 2560 # else # define mqtt_max_packet_size 1024 diff --git a/main/main.ino b/main/main.ino index 020ada33ba..e47f254583 100644 --- a/main/main.ino +++ b/main/main.ino @@ -2365,7 +2365,7 @@ String latestVersion; # include "zzHTTPUpdate.h" -# ifdef CHECK_OTA_UPDATE +# if CHECK_OTA_UPDATE /** * Check on a server the latest version information to build a releaseLink * The release link will be used when the user trigger an OTA update command