mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 20:10:40 +08:00
remove unused code
This commit is contained in:
parent
efeac79241
commit
f2f20b1009
10
.vscode/extensions.json
vendored
10
.vscode/extensions.json
vendored
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||||
// for the documentation about the extensions.json format
|
// for the documentation about the extensions.json format
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"platformio.platformio-ide"
|
"platformio.platformio-ide"
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -35,7 +35,6 @@ void HTTP_Server::SDFileupload ()
|
|||||||
level_authenticate_type auth_level= AuthenticationService::authenticated_level();
|
level_authenticate_type auth_level= AuthenticationService::authenticated_level();
|
||||||
static String filename;
|
static String filename;
|
||||||
static ESP_SDFile fsUploadFile;
|
static ESP_SDFile fsUploadFile;
|
||||||
static uint32_t timecheck;
|
|
||||||
//Guest cannot upload - only admin
|
//Guest cannot upload - only admin
|
||||||
if (auth_level == LEVEL_GUEST) {
|
if (auth_level == LEVEL_GUEST) {
|
||||||
pushError(ESP_ERROR_AUTHENTICATION, "Upload rejected", 401);
|
pushError(ESP_ERROR_AUTHENTICATION, "Upload rejected", 401);
|
||||||
@ -47,7 +46,6 @@ void HTTP_Server::SDFileupload ()
|
|||||||
|
|
||||||
//Upload start
|
//Upload start
|
||||||
if (upload.status == UPLOAD_FILE_START) {
|
if (upload.status == UPLOAD_FILE_START) {
|
||||||
timecheck= millis();
|
|
||||||
_upload_status = UPLOAD_STATUS_ONGOING;
|
_upload_status = UPLOAD_STATUS_ONGOING;
|
||||||
if (upload_filename[0] != '/') {
|
if (upload_filename[0] != '/') {
|
||||||
filename = "/" + upload_filename;
|
filename = "/" + upload_filename;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user