modifies initcode and libwrap for new mnrs/ehrenberg vp

This commit is contained in:
2024-02-22 17:10:49 +01:00
parent 98760929c6
commit 96fa7db587
5 changed files with 16 additions and 23 deletions

View File

@@ -29,7 +29,7 @@ ssize_t __wrap_read(int fd, void* ptr, size_t len)
if (isatty(fd)) {
#if defined(BOARD_ehrenberg)
for (current = (uint8_t *)ptr;
(current < ((uint8_t *)ptr) + len) && (uart_get_rx_avail(uart) > 0);
(current < ((uint8_t *)ptr) + len) && (get_uart_rx_tx_reg_rx_avail(uart) > 0);
current ++) {
*current = uart_read(uart);
result++;