commit | 92fb477641596e6d48581b069c086ce77037b0a6 | [log] [tgz] |
---|---|---|
author | Sylvio Alves <sylvio.alves@espressif.com> | Thu Dec 23 17:45:14 2021 -0300 |
committer | Christopher Friedt <chrisfriedt@gmail.com> | Tue Jan 04 10:07:15 2022 -0500 |
tree | 59e712d9ad6e36788d60022c27ee628eb43e65eb | |
parent | 397101d322fc92db314cbb713d8e1c9784d5bbb6 [diff] |
drivers: uart: esp32: fix poll in return value ESP32 uart_poll_in should return 0 on success and not the total amount of data read. This also adds a check in fifo_fill call to avoid negative values, otherwise it would send garbage to uart Closes #41352 Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>