mirror of
https://github.com/apache/nuttx.git
synced 2026-09-09 18:36:37 +00:00
Fix a readline bug. If a NUL is received, it would return end-of-file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5633 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
98191f9c9f
commit
770bf192d5
1 changed files with 2 additions and 0 deletions
|
|
@ -981,6 +981,8 @@ static void up_setspeed(struct uart_dev_s *dev)
|
|||
}
|
||||
else
|
||||
{
|
||||
DEBUGASSERT(usartdiv8 >= 8);
|
||||
|
||||
/* Perform mysterious operations on bits 0-3 */
|
||||
|
||||
brr = ((usartdiv8 & 0xfff0) | ((usartdiv8 & 0x000f) >> 1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue