fix compilation with new Print class in esp8266

This commit is contained in:
Luc 2020-11-02 12:25:41 +01:00
parent 8425f96af8
commit 12e6c8ede8
4 changed files with 4 additions and 4 deletions

View File

@ -269,7 +269,7 @@ size_t Telnet_Server::write(const uint8_t *buffer, size_t size)
return 0; return 0;
} }
uint Telnet_Server::availableForWrite() int Telnet_Server::availableForWrite()
{ {
if (!isConnected()) { if (!isConnected()) {
return 0; return 0;

View File

@ -62,7 +62,7 @@ public:
return write((uint8_t) n); return write((uint8_t) n);
} }
int available(); int available();
uint availableForWrite(); int availableForWrite();
void flush(); void flush();
int read(void); int read(void);
size_t readBytes (uint8_t * sbuf, size_t len); size_t readBytes (uint8_t * sbuf, size_t len);

View File

@ -135,7 +135,7 @@ int WebSocket_Server::available()
{ {
return _RXbufferSize; return _RXbufferSize;
} }
uint WebSocket_Server::availableForWrite() int WebSocket_Server::availableForWrite()
{ {
return TXBUFFERSIZE -_TXbufferSize; return TXBUFFERSIZE -_TXbufferSize;
} }

View File

@ -62,7 +62,7 @@ public:
} }
void end(); void end();
int available(); int available();
uint availableForWrite(); int availableForWrite();
void pushMSG (const char * data); void pushMSG (const char * data);
void pushMSG (uint num, const char * data); void pushMSG (uint num, const char * data);
void flush(void); void flush(void);