|
|
|
|
@ -3536,22 +3536,22 @@ void load_files() {
|
|
|
|
|
|
|
|
|
|
f = LittleFS.open("sstv_image_1_320_x_240.jpg", "r");
|
|
|
|
|
if (f) {
|
|
|
|
|
Serial.print("Image sstv_image_1_320_x_240.jpg already in FS");
|
|
|
|
|
Serial.println("Image sstv_image_1_320_x_240.jpg already in FS");
|
|
|
|
|
f.close();
|
|
|
|
|
} else {
|
|
|
|
|
Serial.print("Loading image sstv_image_1_320_x_240.jpg into FS");
|
|
|
|
|
f = LittleFS.open("sstv_image_1_320_x_240.jpg", "w+");
|
|
|
|
|
if (f.write(sstv_image_1_320_x_240, sizeof(sstv_image_1_320_x_240)) < sizeof(sstv_image_1_320_x_240))
|
|
|
|
|
Serial.print("Loading image failed. Is Flash Size (FS) set to 1MB?");
|
|
|
|
|
Serial.println("Loading image failed. Is Flash Size (FS) set to 1MB?");
|
|
|
|
|
f.close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
f = LittleFS.open("sstv_image_2_320_x_240.jpg", "r");
|
|
|
|
|
if (f) {
|
|
|
|
|
Serial.print("Image sstv_image_2_320_x_240.jpg already in FS");
|
|
|
|
|
Serial.println("Image sstv_image_2_320_x_240.jpg already in FS");
|
|
|
|
|
f.close();
|
|
|
|
|
} else {
|
|
|
|
|
Serial.print("Loading image sstv_image_2_320_x_240.jpg into FS");
|
|
|
|
|
Serial.println("Loading image sstv_image_2_320_x_240.jpg into FS");
|
|
|
|
|
f = LittleFS.open("sstv_image_2_320_x_240.jpg", "w+");
|
|
|
|
|
if (f.write(sstv_image_2_320_x_240, sizeof(sstv_image_2_320_x_240)) < sizeof(sstv_image_2_320_x_240))
|
|
|
|
|
Serial.print("Loading image failed. Is Flash Size (FS) set to 1MB?");
|
|
|
|
|
|