diff options
| author | bernard.xiong <[email protected]> | 2009-08-03 14:00:58 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2009-08-03 14:00:58 +0000 |
| commit | 6a6715551e440891529799c8f7b0c7cf4ed6dbd4 (patch) | |
| tree | 2b930343ddf437e14cffd86bf3e8c7e947ecce71 /libcpu | |
| parent | 74f893fc2e084549309efed21286c97d481977d7 (diff) | |
fix the serial initialization issue
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@16 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/arm/stm32/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/arm/stm32/serial.c b/libcpu/arm/stm32/serial.c index c5dbb0b24e..41f8e74a90 100644 --- a/libcpu/arm/stm32/serial.c +++ b/libcpu/arm/stm32/serial.c @@ -107,7 +107,7 @@ static rt_err_t rt_serial_init (rt_device_t dev) rt_memset(uart->int_rx->rx_buffer, 0,
sizeof(uart->int_rx->rx_buffer));
uart->int_rx->read_index = 0;
- uart->int_rx->read_index = 0;
+ uart->int_rx->save_index = 0;
}
if (dev->flag & RT_DEVICE_FLAG_DMA_RX)
|
