*** EFM32 branch ***
Fix a bug in USART driver git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1974 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
3c3353ee18
commit
0120ba02a5
|
@ -523,9 +523,9 @@ static rt_size_t rt_usart_read (
|
||||||
{
|
{
|
||||||
*(ptr++) = usart->usart_device->RXDATA & 0xff;
|
*(ptr++) = usart->usart_device->RXDATA & 0xff;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
len--;
|
len--;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
read_len = size - len;
|
read_len = size - len;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue