mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 07:40:38 +08:00
remove unused code
This commit is contained in:
parent
efeac79241
commit
f2f20b1009
12
.vscode/extensions.json
vendored
12
.vscode/extensions.json
vendored
@ -1,7 +1,7 @@
|
||||
{
|
||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"platformio.platformio-ide"
|
||||
]
|
||||
}
|
||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"platformio.platformio-ide"
|
||||
]
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user