mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-18 04:11:53 +02:00
Changed sd_close to SD.end()
sd_close was a temporary function to check for memory usage
This commit is contained in:
@@ -1348,7 +1348,7 @@ namespace WebUI {
|
|||||||
s += path;
|
s += path;
|
||||||
s += " does not exist on SD Card\"}";
|
s += " does not exist on SD Card\"}";
|
||||||
_webserver->send(200, "application/json", s);
|
_webserver->send(200, "application/json", s);
|
||||||
sd_close();
|
SD.end();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (list_files) {
|
if (list_files) {
|
||||||
@@ -1427,7 +1427,7 @@ namespace WebUI {
|
|||||||
_webserver->send(200, "application/json", jsonfile);
|
_webserver->send(200, "application/json", jsonfile);
|
||||||
_upload_status = UploadStatusType::NONE;
|
_upload_status = UploadStatusType::NONE;
|
||||||
set_sd_state(SDCARD_IDLE);
|
set_sd_state(SDCARD_IDLE);
|
||||||
sd_close();
|
SD.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
//SD File upload with direct access to SD///////////////////////////////
|
//SD File upload with direct access to SD///////////////////////////////
|
||||||
@@ -1545,7 +1545,7 @@ namespace WebUI {
|
|||||||
if (sdUploadFile) {
|
if (sdUploadFile) {
|
||||||
sdUploadFile.close();
|
sdUploadFile.close();
|
||||||
}
|
}
|
||||||
sd_close();
|
SD.end();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -796,7 +796,7 @@ namespace WebUI {
|
|||||||
ssd += " Total:" + ESPResponseStream::formatBytes(SD.totalBytes());
|
ssd += " Total:" + ESPResponseStream::formatBytes(SD.totalBytes());
|
||||||
ssd += "]";
|
ssd += "]";
|
||||||
webPrintln(ssd);
|
webPrintln(ssd);
|
||||||
sd_close();
|
SD.end();
|
||||||
return Error::Ok;
|
return Error::Ok;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user