From c8596b97abd8e4d3cbe1b7aa791e43559661f02b Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 18 Feb 2023 10:37:19 -0500 Subject: [PATCH] add format --- cubesatsim/esp32-cam/esp32-cam.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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");