subsys: console: Fix signed vs unsigned char issues.
May lead to warnings/errors with pedantic compilers (like LLVM). Jira: ZEP-2170 Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
777b52efe3
commit
6b5a7238b2
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ static void uart_isr(struct device *dev)
|
||||||
uart_irq_update(dev);
|
uart_irq_update(dev);
|
||||||
|
|
||||||
if (uart_irq_rx_ready(dev)) {
|
if (uart_irq_rx_ready(dev)) {
|
||||||
char c;
|
u8_t c;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
if (uart_fifo_read(dev, &c, 1) == 0) {
|
if (uart_fifo_read(dev, &c, 1) == 0) {
|
||||||
|
@ -89,7 +89,7 @@ int console_putchar(char c)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
tx_ringbuf[tx_put] = c;
|
tx_ringbuf[tx_put] = (u8_t)c;
|
||||||
tx_put = tx_next;
|
tx_put = tx_next;
|
||||||
|
|
||||||
irq_unlock(key);
|
irq_unlock(key);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue