diff options
| author | Bernard Xiong <[email protected]> | 2015-07-22 09:49:32 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-07-22 09:49:32 +0800 |
| commit | 063a2eb5c65351d15d46ca59f80e2cac311ccbaa (patch) | |
| tree | c5d464055548aa2a461722b25dd6698ab095a7e6 | |
| parent | 724961c645c537dd2dc7ba00397dc914636b4e16 (diff) | |
| parent | 3ad3066c4b36e41b9ab1638a8f8b643865e38540 (diff) | |
Merge pull request #523 from aozima/pulls
fixed rt_can_close issues.
| -rw-r--r-- | components/drivers/can/can.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/can/can.c b/components/drivers/can/can.c index 3781a24009..d1cc21dd3f 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); |
