usb_hid: Fix for override of Serial.write

main
tmk 2021-07-20 18:21:54 +09:00
parent 4964617a31
commit ece5941e22
1 changed files with 4 additions and 2 deletions

View File

@ -51,8 +51,10 @@ size_t Serial_::write(uint8_t c)
size_t Serial_::write(const uint8_t *buffer, size_t size)
{
sendchar(*buffer);
return 1;
for (int i = 0; i < size; i++) {
sendchar(buffer[i]);
}
return size;
}
Serial_::operator bool() {