|
@ -139,9 +139,8 @@ size_t WebSocketSerial::write(const uint8_t c) { |
|
|
|
|
|
|
|
|
size_t WebSocketSerial::write(const uint8_t* buffer, size_t size) { |
|
|
size_t WebSocketSerial::write(const uint8_t* buffer, size_t size) { |
|
|
size_t written = 0; |
|
|
size_t written = 0; |
|
|
for(size_t i = 0; i < size; i++) { |
|
|
for (size_t i = 0; i < size; i++) |
|
|
written += write(buffer[i]); |
|
|
written += write(buffer[i]); |
|
|
} |
|
|
|
|
|
return written; |
|
|
return written; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|