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

@ -75,13 +75,16 @@ void setup() {
if (init_camera() == ESP_OK) if (init_camera() == ESP_OK)
{ {
config_camera(); config_camera();
if (!SPIFFS.begin(FORMAT_SPIFFS_IF_FAILED)) { if (!SPIFFS.begin(FORMAT_SPIFFS_IF_FAILED)) {
Serial.println("SPIFFS Mount Failed"); Serial.println("SPIFFS Mount Failed");
return; return;
} }
} }
SPIFFS.format();
deleteFile(SPIFFS, "/cam.jpg"); deleteFile(SPIFFS, "/cam.jpg");
deleteFile(SPIFFS, "/cam.bin"); deleteFile(SPIFFS, "/cam.bin");

Loading…
Cancel
Save

Powered by TurnKey Linux.