Update esp32-cam.ino

pico-v0.37-esp32
alanbjohnston 3 years ago committed by GitHub
parent 5d34690466
commit 39090201db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -306,6 +306,7 @@ void load_files() {
} else {
Serial.println("Loading image sstv_image_1_320_x_240.jpg into FS");
f = SPIFFS.open("/sstv_image_1_320_x_240.jpg", FILE_WRITE);
if (!f) Serial.println("Error opening");
if (f.write(sstv_image_1_320_x_240, sizeof(sstv_image_1_320_x_240)) < sizeof(sstv_image_1_320_x_240)) {
Serial.println("Loading image failed.");
delay(2000);
@ -320,6 +321,7 @@ void load_files() {
} else {
Serial.println("Loading image sstv_image_2_320_x_240.jpg into FS");
f = SPIFFS.open("/sstv_image_2_320_x_240.jpg", FILE_WRITE);
if (!f) Serial.println("Error opening");
if (f.write(sstv_image_2_320_x_240, sizeof(sstv_image_2_320_x_240)) < sizeof(sstv_image_2_320_x_240)) {
Serial.println("Loading image failed");
delay(2000);

Loading…
Cancel
Save

Powered by TurnKey Linux.