Minor updates

This commit is contained in:
anschrammh 2019-10-16 19:27:43 +02:00
parent d41cebfee6
commit bd3d17c5c2
4 changed files with 14 additions and 13 deletions

View File

@ -36,5 +36,3 @@ double SDCardManager::getSize(const SizeUnit sizeUnit)
return result;
}

View File

@ -25,7 +25,7 @@ boolean task_blink(void *pData)
boolean task_batt_sensing(void *pData)
{
View1Packet *p = (View1Packet *) pData;
Serial.println(F("BATT SENSING..."));
//Serial.println(F("BATT SENSING..."));
p->powerInfo = p->sab->getPowerManager().getPowerInfo();
return true;

View File

@ -19,17 +19,23 @@ class FTPServer : public TCPServer<T>
_dataServer(_dataPort)
{
if(login != NULL)
{
if(strlen(login) > 0)
{
_login = (char *)malloc((sizeof(char) * strlen(login)) + 1);
strcpy(_login, login);
}
}
if(password != NULL)
{
if(strlen(password) > 0)
{
_password = (char *)malloc((sizeof(char) * strlen(password)) + 1);
strcpy(_password, password);
}
}
}
void setCustomDataPort(unsigned int port)
{

View File

@ -143,11 +143,8 @@ class TCPServer
_currentClient->_clientState = TCPClient::DISCARDED;
}
if(_currentClient->_dataSize > 0)
{
_currentClient->_newDataAvailable = false;
}
processClientData(_currentClient);//We process the actual data
_currentClient->_newDataAvailable = false;
if(_currentClient->_clientState == TCPClient::ClientState::DISCARDED)
{