drivers: serial: esp32: Return transmitted character on success
When transmitting to the UART interface using polled mode, the ESP32 driver would return 0 regardless of the success state. Return the character that has been transmitted to comply with the API. Jira: ZEP-2552 Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
This commit is contained in:
parent
3dfa1cef0a
commit
884a385fc6
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ static unsigned char esp32_uart_tx(struct device *dev,
|
|||
|
||||
uart_tx_one_char(c);
|
||||
|
||||
return 0;
|
||||
return c;
|
||||
}
|
||||
|
||||
static int esp32_uart_rx(struct device *dev, unsigned char *p_char)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue