mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-02 14:30:41 +08:00
fix compilation with new Print class in esp8266
This commit is contained in:
parent
8425f96af8
commit
12e6c8ede8
@ -269,7 +269,7 @@ size_t Telnet_Server::write(const uint8_t *buffer, size_t size)
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint Telnet_Server::availableForWrite()
|
||||
int Telnet_Server::availableForWrite()
|
||||
{
|
||||
if (!isConnected()) {
|
||||
return 0;
|
||||
|
@ -62,7 +62,7 @@ public:
|
||||
return write((uint8_t) n);
|
||||
}
|
||||
int available();
|
||||
uint availableForWrite();
|
||||
int availableForWrite();
|
||||
void flush();
|
||||
int read(void);
|
||||
size_t readBytes (uint8_t * sbuf, size_t len);
|
||||
|
@ -135,7 +135,7 @@ int WebSocket_Server::available()
|
||||
{
|
||||
return _RXbufferSize;
|
||||
}
|
||||
uint WebSocket_Server::availableForWrite()
|
||||
int WebSocket_Server::availableForWrite()
|
||||
{
|
||||
return TXBUFFERSIZE -_TXbufferSize;
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ public:
|
||||
}
|
||||
void end();
|
||||
int available();
|
||||
uint availableForWrite();
|
||||
int availableForWrite();
|
||||
void pushMSG (const char * data);
|
||||
void pushMSG (uint num, const char * data);
|
||||
void flush(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user