mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 07:46:16 +08:00
risc-v/rv32m1: Fix wrong position for ++ operator on serial driver
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
committed by
saramonteiro
parent
eca1f86294
commit
e9c17c9332
@@ -491,7 +491,7 @@ static void up_set_format(struct uart_dev_s *dev)
|
||||
/* Get the closer one. i.e. the minimum difference */
|
||||
|
||||
tdiff = priv->baud - baud;
|
||||
tsbr ++;
|
||||
tsbr++;
|
||||
}
|
||||
|
||||
/* Pick up the best osr and sbr with the minimum diff */
|
||||
|
||||
Reference in New Issue
Block a user