1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-17 12:00:59 +02:00

Changed sd_close to SD.end()

sd_close was a temporary function to check for memory usage
This commit is contained in:
bdring
2020-10-07 07:37:30 -05:00
parent 78dc79aa4f
commit 895eded6fc
2 changed files with 4 additions and 4 deletions

View File

@@ -1348,7 +1348,7 @@ namespace WebUI {
s += path;
s += " does not exist on SD Card\"}";
_webserver->send(200, "application/json", s);
sd_close();
SD.end();
return;
}
if (list_files) {
@@ -1427,7 +1427,7 @@ namespace WebUI {
_webserver->send(200, "application/json", jsonfile);
_upload_status = UploadStatusType::NONE;
set_sd_state(SDCARD_IDLE);
sd_close();
SD.end();
}
//SD File upload with direct access to SD///////////////////////////////
@@ -1545,7 +1545,7 @@ namespace WebUI {
if (sdUploadFile) {
sdUploadFile.close();
}
sd_close();
SD.end();
return;
}
}

View File

@@ -796,7 +796,7 @@ namespace WebUI {
ssd += " Total:" + ESPResponseStream::formatBytes(SD.totalBytes());
ssd += "]";
webPrintln(ssd);
sd_close();
SD.end();
return Error::Ok;
}
#endif