소스 검색

Merge pull request #523 from aozima/pulls

fixed rt_can_close issues.
Bernard Xiong 9 년 전
부모
커밋
063a2eb5c6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/drivers/can/can.c

+ 1 - 1
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;
         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_ASSERT(tx_fifo != RT_NULL);
 
 
         rt_free(tx_fifo);
         rt_free(tx_fifo);