mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
tests for 4MB firmware upload
This commit is contained in:
@@ -424,10 +424,12 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
|
|||||||
|
|
||||||
if (command == "upload") {
|
if (command == "upload") {
|
||||||
// S3 has 16MB flash
|
// S3 has 16MB flash
|
||||||
// EMSESP::system_.uploadFirmwareURL("https://github.com/emsesp/EMS-ESP32/releases/download/latest/EMS-ESP-3_7_0-dev_32-ESP32S3-16MB+.bin");
|
// EMSESP::system_.uploadFirmwareURL("https://github.com/emsesp/EMS-ESP32/releases/download/latest/EMS-ESP-3_7_0-dev_32-ESP32S3-16MB+.bin"); // S3
|
||||||
|
|
||||||
// Test for 4MB Tasmota builds
|
// Test for 4MB Tasmota builds
|
||||||
EMSESP::system_.uploadFirmwareURL("https://github.com/emsesp/EMS-ESP32/releases/download/latest/EMS-ESP-3_7_0-dev_32-ESP32-16MB.bin");
|
// EMSESP::system_.uploadFirmwareURL("https://github.com/emsesp/EMS-ESP32/releases/download/latest/EMS-ESP-3_7_2-dev_8-ESP32-4MB.bin"); // S32
|
||||||
|
EMSESP::system_.uploadFirmwareURL("https://github.com/emsesp/EMS-ESP32/releases/download/latest/EMS-ESP-3_7_2-dev_8-ESP32-16MB.bin"); // E32
|
||||||
|
|
||||||
ok = true;
|
ok = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -2369,7 +2371,7 @@ void Test::add_device(uint8_t device_id, uint8_t product_id) {
|
|||||||
#ifndef EMSESP_STANDALONE
|
#ifndef EMSESP_STANDALONE
|
||||||
void Test::listDir(fs::FS & fs, const char * dirname, uint8_t levels) {
|
void Test::listDir(fs::FS & fs, const char * dirname, uint8_t levels) {
|
||||||
Serial.println();
|
Serial.println();
|
||||||
Serial.printf("Listing directory: %s\r\n", dirname);
|
Serial.printf("%s\r\n", dirname);
|
||||||
|
|
||||||
File root = fs.open(dirname);
|
File root = fs.open(dirname);
|
||||||
if (!root) {
|
if (!root) {
|
||||||
@@ -2384,12 +2386,11 @@ void Test::listDir(fs::FS & fs, const char * dirname, uint8_t levels) {
|
|||||||
File file = root.openNextFile();
|
File file = root.openNextFile();
|
||||||
while (file) {
|
while (file) {
|
||||||
if (file.isDirectory()) {
|
if (file.isDirectory()) {
|
||||||
Serial.print(" DIR: ");
|
Serial.print(file.name());
|
||||||
Serial.println(file.name());
|
Serial.println("/");
|
||||||
if (levels) {
|
if (levels) {
|
||||||
// prefix a / to the name to make it a full path
|
// prefix a / to the name to make it a full path
|
||||||
listDir(fs, ("/" + String(file.name())).c_str(), levels - 1);
|
listDir(fs, ("/" + String(file.name())).c_str(), levels - 1);
|
||||||
// listDir(fs, file.name(), levels - 1);
|
|
||||||
}
|
}
|
||||||
Serial.println();
|
Serial.println();
|
||||||
} else {
|
} else {
|
||||||
@@ -2401,7 +2402,6 @@ void Test::listDir(fs::FS & fs, const char * dirname, uint8_t levels) {
|
|||||||
}
|
}
|
||||||
file = root.openNextFile();
|
file = root.openNextFile();
|
||||||
}
|
}
|
||||||
Serial.println();
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user