mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
This commit is contained in:
@ -506,8 +506,10 @@ uart_write(uart_t* uart, const char* buf, size_t size)
|
|||||||
|
|
||||||
size_t ret = size;
|
size_t ret = size;
|
||||||
const int uart_nr = uart->uart_nr;
|
const int uart_nr = uart->uart_nr;
|
||||||
while (size--)
|
while (size--) {
|
||||||
uart_do_write_char(uart_nr, pgm_read_byte(buf++));
|
uart_do_write_char(uart_nr, pgm_read_byte(buf++));
|
||||||
|
optimistic_yield(10000UL);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user