https://forum.pjrc.com/threads/40893-Incorrect-return-for-Serial-write()-on-Teensy-3-6?p=127764&viewfull=1#post127764teensy4-core
@@ -80,7 +80,7 @@ __attribute__((weak)) | |||
int _write(int file, char *ptr, int len) | |||
{ | |||
((class Print *)file)->write((uint8_t *)ptr, len); | |||
return 0; | |||
return len; | |||
} | |||
} | |||