fix compilation error with authentication and esp8266

This commit is contained in:
Luc 2019-11-01 08:19:40 +01:00
parent c706f44229
commit d4d2482fd1
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ void dateTime (uint16_t* date, uint16_t* dtime)
*dtime = FAT_TIME (tmstruct.tm_hour, tmstruct.tm_min, tmstruct.tm_sec); *dtime = FAT_TIME (tmstruct.tm_hour, tmstruct.tm_min, tmstruct.tm_sec);
} }
time_t getDateTimeFile(File & filehandle) time_t getDateTimeFile(sdfat::File & filehandle)
{ {
static time_t dt = 0; static time_t dt = 0;
struct tm timefile; struct tm timefile;

View File

@ -311,7 +311,7 @@ bool FtpServer::isUser(const char * user)
log_esp3d("Check User"); log_esp3d("Check User");
_currentUser = ""; _currentUser = "";
#ifdef AUTHENTICATION_FEATURE #ifdef AUTHENTICATION_FEATURE
if ((user != nullptr) && ((strcmp(user, DEFAULT_ADMIN_LOGIN) == 0) || (strcmp(user, DEFAULT_USER_LOGIN) == 0)) { if ((user != nullptr) && ((strcmp(user, DEFAULT_ADMIN_LOGIN) == 0) || (strcmp(user, DEFAULT_USER_LOGIN) == 0))) {
_currentUser = user; _currentUser = user;
return true; return true;
} }