diff options
| author | Meco Jianting Man <[email protected]> | 2021-03-31 22:02:17 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-31 22:02:17 +0800 |
| commit | c18cd58e3e9b70f412097534313cf5a76fca12a6 (patch) | |
| tree | bdd25e6da3252fc068ae76a593a8269bab9cc58f /components | |
| parent | ebe9d15d6f3760455e479546c829b7a4e25cddba (diff) | |
| parent | 08a4de57e2f5e2f0d770b569690616599eaaf5fe (diff) | |
Merge pull request #33 from RT-Thread/master
pr
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/serial/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/serial/serial.c b/components/drivers/serial/serial.c index d9a20f05a0..32161ad0cb 100644 --- a/components/drivers/serial/serial.c +++ b/components/drivers/serial/serial.c @@ -816,11 +816,11 @@ static rt_err_t rt_serial_close(struct rt_device *dev) /* configure low level device */ serial->ops->control(serial, RT_DEVICE_CTRL_CLR_INT, (void *) RT_DEVICE_FLAG_DMA_TX); } +#endif /* RT_SERIAL_USING_DMA */ serial->ops->control(serial, RT_DEVICE_CTRL_CLOSE, RT_NULL); dev->flag &= ~RT_DEVICE_FLAG_ACTIVATED; -#endif /* RT_SERIAL_USING_DMA */ return RT_EOK; } |
