Merge pull request #620 from Bluebear233/master

Update serial.c
This commit is contained in:
Bernard Xiong 2016-04-09 21:27:16 +08:00
commit 454591dcfc
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ static rt_err_t rt_serial_close(struct rt_device *dev)
serial->serial_rx = RT_NULL;
dev->open_flag &= ~RT_DEVICE_FLAG_INT_RX;
/* configure low level device */
serial->ops->control(serial, RT_DEVICE_CTRL_CLR_INT, (void*)RT_DEVICE_FLAG_INT_TX);
serial->ops->control(serial, RT_DEVICE_CTRL_CLR_INT, (void*)RT_DEVICE_FLAG_INT_RX);
}
else if (dev->open_flag & RT_DEVICE_FLAG_DMA_RX)
{