Browse Source

[components][drivers][can] can.c fix bug.

杨连钊 6 years ago
parent
commit
afe802733f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/drivers/can/can.c

+ 2 - 2
components/drivers/can/can.c

@@ -53,7 +53,7 @@ rt_inline int _can_int_rx(struct rt_can_device *can, struct rt_can_msg *data, in
     {
     {
         rt_base_t level;
         rt_base_t level;
 #ifdef RT_CAN_USING_HDR
 #ifdef RT_CAN_USING_HDR
-        rt_int32_t hdr;
+        rt_int8_t hdr;
 #endif /*RT_CAN_USING_HDR*/
 #endif /*RT_CAN_USING_HDR*/
         struct rt_can_msg_list *listmsg = RT_NULL;
         struct rt_can_msg_list *listmsg = RT_NULL;
 
 
@@ -760,7 +760,7 @@ void rt_hw_can_isr(struct rt_can_device *can, int event)
         struct rt_can_rx_fifo *rx_fifo;
         struct rt_can_rx_fifo *rx_fifo;
         struct rt_can_msg_list *listmsg = RT_NULL;
         struct rt_can_msg_list *listmsg = RT_NULL;
 #ifdef RT_CAN_USING_HDR
 #ifdef RT_CAN_USING_HDR
-        rt_int32_t hdr;
+        rt_int8_t hdr;
 #endif
 #endif
         int ch = -1;
         int ch = -1;
         rt_base_t level;
         rt_base_t level;