From 26e3dee2a3b2b32d0a43390f1b38c408ebcf6bf6 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 14 Dec 2022 09:18:31 -0500 Subject: [PATCH] try to add format at boot --- .../esp32-cam-send-jpeg-serial.ino | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino b/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino index f8597c08..33373d9d 100644 --- a/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino +++ b/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino @@ -187,7 +187,7 @@ void setup() { config_camera(); - Serial.println("ESP32-CAM Camera initialized v0.2"); + Serial.println("ESP32-CAM Camera initialized v0.3"); pinMode(LED_PIN, OUTPUT); // Set the pin as output @@ -197,8 +197,9 @@ void setup() { // Serial.println("Initializing CRC"); // crc.setPolynome(0x1021); - - if (!SPIFFS.begin(FORMAT_SPIFFS_IF_FAILED)) { + +// if (!SPIFFS.begin(FORMAT_SPIFFS_IF_FAILED)) { + if (!SPIFFS.begin(FORMAT_SPIFFS)) { Serial.println("SPIFFS Mount Failed"); return; }