Git
Wiki
Site
projects
/
soft
/
lpc82x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dbe420
)
uart->out_buff cannot be NULL, remove this tests.
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Thu, 15 Jun 2017 07:01:06 +0000
(09:01 +0200)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Fri, 10 Feb 2023 18:02:59 +0000
(19:02 +0100)
drivers/serial.c
patch
|
blob
|
history
diff --git
a/drivers/serial.c
b/drivers/serial.c
index
f5e561d
..
f74c789
100644
(file)
--- a/
drivers/serial.c
+++ b/
drivers/serial.c
@@
-118,9
+118,8
@@
static void uart_check_tx(struct uart_device* uart, uint32_t intr)
{
/* We are currently sending, send next char */
if (intr & LPC_UART_ST_TX_READY) {
- if (uart->out_buff && uart->sending && (uart->out_length > uart->sending)) {
- uart->regs->tx_data = uart->out_buff[uart->sending];
- uart->sending++;
+ if (uart->sending && (uart->out_length > uart->sending)) {
+ uart->regs->tx_data = uart->out_buff[uart->sending++];
} else {
uart->sending = 0;
uart->regs->inten_clear = LPC_UART_ST_TX_READY;
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !