libretiny

This commit is contained in:
Mit4el
2024-09-20 12:45:17 +03:00
parent b32abb5a28
commit 596eb9cad4
78 changed files with 8577 additions and 63 deletions

View File

@@ -36,6 +36,7 @@ void upgrade_firmware(int type, String path) {
bool upgradeFS(String path) {
bool ret = false;
#ifndef LIBRETINY
WiFiClient wifiClient;
SerialPrint("!!!", F("Update"), "Start upgrade FS... " + path);
@@ -67,11 +68,13 @@ bool upgradeFS(String path) {
SerialPrint("E", F("Update"), "HTTP_UPDATE_NO_UPDATES");
}
}
#endif
return ret;
}
bool upgradeBuild(String path) {
bool ret = false;
#ifndef LIBRETINY
WiFiClient wifiClient;
SerialPrint("!!!", F("Update"), "Start upgrade BUILD... " + path);
@@ -102,6 +105,7 @@ bool upgradeBuild(String path) {
SerialPrint("E", F("Update"), "HTTP_UPDATE_NO_UPDATES");
}
}
#endif
return ret;
}