diff --git a/ESP32_AP-Flasher/src/newproto.cpp b/ESP32_AP-Flasher/src/newproto.cpp index 0a092c3c..09d9be7f 100644 --- a/ESP32_AP-Flasher/src/newproto.cpp +++ b/ESP32_AP-Flasher/src/newproto.cpp @@ -384,7 +384,11 @@ void processXferComplete(struct espXferComplete* xfc, bool local) { LittleFS.remove(dst_path); } if (LittleFS.exists(src_path)) { + #ifndef REMOVE_RAW LittleFS.rename(src_path, dst_path); + #else + LittleFS.remove(src_path); + #endif } time_t now;