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
@ -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…
Reference in New Issue
Block a user