4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-19 07:32:02 +08:00

fixed rt_can_close issues.

This commit is contained in:
aozima 2015-07-21 17:04:22 +08:00
parent 724961c645
commit 3ad3066c4b

View File

@ -433,7 +433,7 @@ static rt_err_t rt_can_close(struct rt_device *dev)
{
struct rt_can_tx_fifo *tx_fifo;
tx_fifo = (struct rt_can_tx_fifo *)can->can_rx;
tx_fifo = (struct rt_can_tx_fifo *)can->can_tx;
RT_ASSERT(tx_fifo != RT_NULL);
rt_free(tx_fifo);