From 6102ac0a6bcf8af019331287b4efd83fb87f9986 Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Wed, 2 Aug 2023 08:31:07 -0500 Subject: [PATCH] [OTA] Fix macro check to avoid having the regular new update check --- main/User_config.h | 4 +++- main/main.ino | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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