mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Making Print::write(char *) non-virtual on WiFi lib
This commit is contained in:
@ -61,17 +61,6 @@ size_t WiFiClient::write(uint8_t b) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t WiFiClient::write(const char *str) {
|
||||
if (_sock != 255)
|
||||
{
|
||||
unsigned int len = strlen(str);
|
||||
ServerDrv::sendData(_sock, (const uint8_t *)str, len);
|
||||
while (!ServerDrv::isDataSent(_sock));
|
||||
return len;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t WiFiClient::write(const uint8_t *buf, size_t size) {
|
||||
if (_sock != 255)
|
||||
{
|
||||
|
Reference in New Issue
Block a user