diff --git a/cubesatsim/esp32-cam/esp32-cam.ino b/cubesatsim/esp32-cam/esp32-cam.ino index e3d5d6a3..b969ccbc 100644 --- a/cubesatsim/esp32-cam/esp32-cam.ino +++ b/cubesatsim/esp32-cam/esp32-cam.ino @@ -75,13 +75,16 @@ void setup() { if (init_camera() == ESP_OK) { - config_camera(); + config_camera(); if (!SPIFFS.begin(FORMAT_SPIFFS_IF_FAILED)) { Serial.println("SPIFFS Mount Failed"); return; } } + + + SPIFFS.format(); deleteFile(SPIFFS, "/cam.jpg"); deleteFile(SPIFFS, "/cam.bin");