fix warnings and compile errors
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user