Commit 05888832 authored by hu's avatar hu

增加报文接收,调整档位bug

parent 2b137f38
......@@ -1222,7 +1222,7 @@ void Gui_Gear_Display(uint8_t Mode)
Temp = Current_Gear - 0x7Eu;
CanStatus1 = CAN_MSG_Status(ID_CanMsg18FF8503_Msg_Count);
CanStatus1 = CAN_MSG_Status(ID_CanMsg18F00503_Msg_Count);
if (CanStatus1 == CAN_SIG_LOST)
{
......@@ -2120,7 +2120,7 @@ void GUI_BG_Menu_Display(uint8_t Mode)
{
uint8_t CanStatus1 = 0u;
CanStatus1 = CAN_MSG_Status(ID_CanMsg0CF00400_Msg_Count);
//CanStatus1 = CAN_MSG_Status(ID_CanMsg0CF00400_Msg_Count);
if (Mode == GUI_DISP_MODE_NORMAL)
{
......
......@@ -42,7 +42,7 @@ void Can_Init(void)
CANLLCCh0Filter.stRSCANCh0.u32RSCANChRuleSize = CANFD0_CH0_RX_RULE_SIZE; /*通道接收规则条数*/
CANLLCCh0Filter.stRSCANCh0.pfnRSCANConfirmCallBack = 0u; /*发送确认*/
CANLLCCh0Filter.stRSCANCh0.pfnRSCANAbortConfirmCallBack = 0u; /*发送中止确认*/
CANLLCCh0Filter.stRSCANCh0.pfnRSCANReadMsgCallBack = 0u; /*接收完成*/
CANLLCCh0Filter.stRSCANCh0.pfnRSCANReadMsgCallBack = Can_Read_Msg; /*接收完成*/
CANLLCCh0Filter.stRSCANCh1.u32RSCANChEn = 0u; /*通道是否使能*/
CANLLCCh0Filter.stRSCANCh1.enRSCANChBps = RSCAN_Baud_Rate_500K; /*通道波特率*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment