Update esp32-cam.ino

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

@ -305,7 +305,7 @@ void load_files() {
f.close();
} else {
Serial.println("Loading image sstv_image_1_320_x_240.jpg into FS");
f = SPIFFS.open("sstv_image_1_320_x_240.jpg", "w+");
f = SPIFFS.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.println("Loading image failed.");
delay(2000);
@ -319,7 +319,7 @@ void load_files() {
f.close();
} else {
Serial.println("Loading image sstv_image_2_320_x_240.jpg into FS");
f = SPIFFS.open("sstv_image_2_320_x_240.jpg", "w+");
f = SPIFFS.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.println("Loading image failed. Is Flash Size (FS) set to 1MB?");
delay(2000);

Loading…
Cancel
Save

Powered by TurnKey Linux.