mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 09:40:40 +08:00
remove unused code
This commit is contained in:
parent
efeac79241
commit
f2f20b1009
@ -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