diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 272828b5..e80666bf 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,7 +1,7 @@ { - // See http://go.microsoft.com/fwlink/?LinkId=827846 - // for the documentation about the extensions.json format - "recommendations": [ - "platformio.platformio-ide" - ] -} \ No newline at end of file + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "platformio.platformio-ide" + ] +} diff --git a/esp3d/src/modules/http/handles/upload-SD-files.cpp b/esp3d/src/modules/http/handles/upload-SD-files.cpp index 0f842228..c69bda3e 100644 --- a/esp3d/src/modules/http/handles/upload-SD-files.cpp +++ b/esp3d/src/modules/http/handles/upload-SD-files.cpp @@ -35,7 +35,6 @@ void HTTP_Server::SDFileupload () level_authenticate_type auth_level= AuthenticationService::authenticated_level(); static String filename; static ESP_SDFile fsUploadFile; - static uint32_t timecheck; //Guest cannot upload - only admin if (auth_level == LEVEL_GUEST) { pushError(ESP_ERROR_AUTHENTICATION, "Upload rejected", 401); @@ -47,7 +46,6 @@ void HTTP_Server::SDFileupload () //Upload start if (upload.status == UPLOAD_FILE_START) { - timecheck= millis(); _upload_status = UPLOAD_STATUS_ONGOING; if (upload_filename[0] != '/') { filename = "/" + upload_filename;