From 3ad3066c4b36e41b9ab1638a8f8b643865e38540 Mon Sep 17 00:00:00 2001 From: aozima Date: Tue, 21 Jul 2015 17:04:22 +0800 Subject: [PATCH] fixed rt_can_close issues. --- components/drivers/can/can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/drivers/can/can.c b/components/drivers/can/can.c index 3781a2400..d1cc21dd3 100644 --- a/components/drivers/can/can.c +++ b/components/drivers/can/can.c @@ -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);