修改UDS提交的更新文件
Signed-off-by: lidun <1084178170@qq.com>
This commit is contained in:
parent
6c0826e20a
commit
9995c72909
@ -485,7 +485,11 @@ void DiagFaultsMonitor(void)
|
||||
faultInfo.b.fECU_ENTER_BUSOFF = 0;
|
||||
}
|
||||
|
||||
if (CheckIsCanBusoff())return;
|
||||
if (CheckIsCanBusoff() || CheckIsBatteryHigh() || CheckIsBatteryLow()) {
|
||||
BMS_CommLossTimer = 0;
|
||||
VCU_CommLossTimer = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
// if (diagStart_Timer) {
|
||||
// diagStart_Timer --;
|
||||
@ -527,6 +531,12 @@ void Uds_SetMsgMonitorTimer(uint16_t msgid)
|
||||
#endif
|
||||
}
|
||||
|
||||
void ClearMsgMonitorTimer(void)
|
||||
{
|
||||
BMS_CommLossTimer = 0;
|
||||
VCU_CommLossTimer = 0;
|
||||
}
|
||||
|
||||
void GetBatteryStatus(void)
|
||||
{
|
||||
if (CheckIsBatteryHigh()) {
|
||||
@ -663,6 +673,7 @@ void ClearDtc(void)
|
||||
memcpy((uint8_t *)&dtcStatusBak, (uint8_t *)&dtcComm.DTCStatus, sizeof(DTC_StatusType));
|
||||
EE_Write(NVM_IMAGE_DTC_ADDR, (uint8_t *)&dtcComm.DTCStatus, sizeof(DTC_StatusType), NULL);
|
||||
ClearHardwareFault();
|
||||
ClearMsgMonitorTimer();
|
||||
}
|
||||
|
||||
|
||||
|
BIN
UDS/uds_api.c
BIN
UDS/uds_api.c
Binary file not shown.
BIN
UDS/uds_dtc.h
BIN
UDS/uds_dtc.h
Binary file not shown.
Loading…
Reference in New Issue
Block a user