Harmonize usb_write & usart_writebuffer_sync return values

This commit is contained in:
Philippe Teuwen
2019-04-22 02:28:58 +02:00
parent 3e402797c1
commit f29facd15a
8 changed files with 24 additions and 24 deletions

View File

@@ -129,7 +129,7 @@ uint32_t usart_read_ng(uint8_t *data, size_t len) {
}
// transfer from device to client
inline int16_t usart_writebuffer_sync(uint8_t *data, size_t len) {
inline int32_t usart_writebuffer_sync(uint8_t *data, size_t len) {
// Wait for current PDC bank to be free
// (and check next bank too, in case there will be a usart_writebuffer_async)