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:
Leandro Pereira 2017-08-22 13:00:48 -07:00 committed by Anas Nashif
commit 884a385fc6

View file

@ -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)