Skip to content

Commit

Permalink
[OTA] Fix macro check to avoid having the regular new update check
Browse files Browse the repository at this point in the history
  • Loading branch information
1technophile committed Aug 2, 2023
1 parent 4a6838a commit 6102ac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion main/User_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion main/main.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6102ac0

Please sign in to comment.