|
@@ -47,7 +47,6 @@ AppNVMDataType AppNVMData;
|
|
|
AppDataHeader AppDataHr;
|
|
|
AppDataBody AppDataInfo;
|
|
|
|
|
|
-BOOL Can_Msg_Enble = false;
|
|
|
|
|
|
//主线程堆栈声明区
|
|
|
static StaticTask_t gProcess_Main_Task_t;
|
|
@@ -185,7 +184,7 @@ static void MainTask(void* arg)
|
|
|
case PROCESS_STATE_WORK:
|
|
|
{
|
|
|
|
|
|
- if(Error_count>=5)
|
|
|
+ if(Error_count>=5 && CanMsgFlag==0x00)
|
|
|
{
|
|
|
AppDataInfo.appDataModify = true;
|
|
|
AppDataInfo.SysReStart = AppDataInfo.SysReStart +1;
|
|
@@ -245,10 +244,9 @@ static void MainTask(void* arg)
|
|
|
#ifdef USING_PRINTF1
|
|
|
printf("TcpService:%d,UDSSwitch:%d,BMS_Fota_update_flag:%d,battWorkState:%d,Can_Msg_Enble:%d\r\n",TcpService,UDSSwitch,BMS_Fota_update_flag,battWorkState,Can_Msg_Enble);
|
|
|
#endif
|
|
|
- if(TcpService!=0x00||UDSSwitch==1||BMS_Fota_update_flag||battWorkState!=0||Can_Msg_Enble==true)
|
|
|
+ if(TcpService!=0x00||UDSSwitch==1||BMS_Fota_update_flag||battWorkState!=0||CanMsgFlag==0x01)
|
|
|
{
|
|
|
xTimerReset(work_timer,0);
|
|
|
- Can_Msg_Enble = false;
|
|
|
}
|
|
|
if(BattChrgEndFlag)
|
|
|
{
|