mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
баги ota исправленны
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -35,7 +35,7 @@ void upgrade_firmware(int type) {
|
|||||||
bool upgradeFS() {
|
bool upgradeFS() {
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
WiFiClient wifiClient;
|
WiFiClient wifiClient;
|
||||||
Serial.printf("Start upgrade %s, please wait...", FS_NAME);
|
SerialPrint("!!!", F("Update"), F("Start upgrade FS..."));
|
||||||
if (getBinPath("") == "error") {
|
if (getBinPath("") == "error") {
|
||||||
SerialPrint("E", F("Update"), F("FS Path error"));
|
SerialPrint("E", F("Update"), F("FS Path error"));
|
||||||
return ret;
|
return ret;
|
||||||
@@ -51,7 +51,7 @@ bool upgradeFS() {
|
|||||||
|
|
||||||
//если FS обновилась успешно
|
//если FS обновилась успешно
|
||||||
if (retFS == HTTP_UPDATE_OK) {
|
if (retFS == HTTP_UPDATE_OK) {
|
||||||
SerialPrint("I", F("Update"), F("FS upgrade done!"));
|
SerialPrint("!!!", F("Update"), F("FS upgrade done!"));
|
||||||
ret = true;
|
ret = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ bool upgradeFS() {
|
|||||||
bool upgradeBuild() {
|
bool upgradeBuild() {
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
WiFiClient wifiClient;
|
WiFiClient wifiClient;
|
||||||
Serial.println(F("Start upgrade BUILD, please wait..."));
|
SerialPrint("!!!", F("Update"), F("Start upgrade BUILD..."));
|
||||||
if (getBinPath("") == "error") {
|
if (getBinPath("") == "error") {
|
||||||
SerialPrint("E", F("Update"), F("Build Path error"));
|
SerialPrint("E", F("Update"), F("Build Path error"));
|
||||||
return ret;
|
return ret;
|
||||||
@@ -77,7 +77,7 @@ bool upgradeBuild() {
|
|||||||
|
|
||||||
//если BUILD обновился успешно
|
//если BUILD обновился успешно
|
||||||
if (retBuild == HTTP_UPDATE_OK) {
|
if (retBuild == HTTP_UPDATE_OK) {
|
||||||
SerialPrint("I", F("Update"), F("BUILD upgrade done!"));
|
SerialPrint("!!!", F("Update"), F("BUILD upgrade done!"));
|
||||||
ret = true;
|
ret = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user