diff --git a/WiFi/WiFiServer.cpp b/WiFi/WiFiServer.cpp old mode 100755 new mode 100644 index 8461583aa..e03f9c393 --- a/WiFi/WiFiServer.cpp +++ b/WiFi/WiFiServer.cpp @@ -46,12 +46,12 @@ WiFiClient WiFiServer::available(byte* status) return WiFiClient(255); } -void WiFiServer::write(uint8_t b) +size_t WiFiServer::write(uint8_t b) { write(&b, 1); } -void WiFiServer::write(const uint8_t *buffer, size_t size) +size_t WiFiServer::write(const uint8_t *buffer, size_t size) { for (int sock = 0; sock < MAX_SOCK_NUM; sock++) { diff --git a/WiFi/WiFiServer.h b/WiFi/WiFiServer.h old mode 100755 new mode 100644 index 2871d06da..849f84cac --- a/WiFi/WiFiServer.h +++ b/WiFi/WiFiServer.h @@ -17,8 +17,8 @@ public: WiFiServer(uint16_t); WiFiClient available(uint8_t* status = NULL); void begin(); - virtual void write(uint8_t); - virtual void write(const uint8_t *buf, size_t size); + virtual size_t write(uint8_t); + virtual size_t write(const uint8_t *buf, size_t size); }; #endif