[OTA] Fix BLE memory release when not using "latest" version (#1599)
This commit is contained in:
1 parent
4fa74e31ba
commit
ac0215b5be
1 file changed
+3
-4
+3
-4
@@ -2195,9 +2195,6 @@ void MQTTHttpsFWUpdate(char* topicOri, JsonObject& HttpsFwUpdateData) {
|
|||||||
# endif
|
# endif
|
||||||
# ifdef ESP32
|
# ifdef ESP32
|
||||||
} else if (strcmp(version, "latest") == 0) {
|
} else if (strcmp(version, "latest") == 0) {
|
||||||
# if defined(ZgatewayBT)
|
|
||||||
stopProcessing();
|
|
||||||
# endif
|
|
||||||
systemUrl = RELEASE_LINK + latestVersion + "/" + ENV_NAME + "-firmware.bin";
|
systemUrl = RELEASE_LINK + latestVersion + "/" + ENV_NAME + "-firmware.bin";
|
||||||
url = systemUrl.c_str();
|
url = systemUrl.c_str();
|
||||||
Log.notice(F("Using system OTA url with latest version %s" CR), url);
|
Log.notice(F("Using system OTA url with latest version %s" CR), url);
|
||||||
@@ -2214,7 +2211,9 @@ void MQTTHttpsFWUpdate(char* topicOri, JsonObject& HttpsFwUpdateData) {
|
|||||||
Log.error(F("Invalid URL" CR));
|
Log.error(F("Invalid URL" CR));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
# if defined(ZgatewayBT)
|
||||||
|
stopProcessing();
|
||||||
|
# endif
|
||||||
Log.warning(F("Starting firmware update" CR));
|
Log.warning(F("Starting firmware update" CR));
|
||||||
SendReceiveIndicatorON();
|
SendReceiveIndicatorON();
|
||||||
ErrorIndicatorON();
|
ErrorIndicatorON();
|
||||||
|
|||||||
Reference in new issue
Block a user