fix warnings and compile errors

This commit is contained in:
Conor Patrick
2019-02-26 14:13:29 -05:00
parent 347d0942b1
commit ecf994b647
3 changed files with 8 additions and 5 deletions

View File

@ -24,7 +24,7 @@ void _putchar(char c)
}
int _write (int fd, const void *buf, long int len)
int _write (int fd, const void *buf, unsigned long int len)
{
uint8_t * data = (uint8_t *) buf;
#if DEBUG_LEVEL>1
@ -43,11 +43,14 @@ int _write (int fd, const void *buf, long int len)
if (res == USBD_OK)
logbuflen = 0;
#endif
#ifdef ENABLE_SERIAL_PRINTING
// Send out UART serial
while(len--)
{
_putchar(*data++);
}
#endif
return 0;
}
#endif