Commit e3e16430 authored by 李秉薇's avatar 李秉薇

fix:39979

parent d51bb031
......@@ -1298,7 +1298,7 @@ void UDS_Service_27_Indication ( uint32_t A_TA_type, uint16_t A_Length, uint8_t
//请求次数+1
//将27服务状态写入flash
//错误密钥达到最大次数,返回36负反馈
if ( diag27.RequestSeedCnt > 2 ) //错误超过二次,需要等待10秒
if ( diag27.RequestSeedCnt >= 2 ) //错误超过二次,需要等待10秒
{
//将请求标志位清空
Services27_01_Requested = 0;
......@@ -1370,7 +1370,7 @@ void UDS_Service_27_Indication ( uint32_t A_TA_type, uint16_t A_Length, uint8_t
//将27服务状态写入flash
Write_27_DATA_TO_FLASH();
//尝试次数超过设定值,开启10s定时器尝试次数减1,返回36负反馈
if ( diag27.attemptcnt >= 2 )
if ( diag27.attemptcnt >= 1 )
{
Wait10sFlag = 1; //10秒计时器打开
wait10cnt = 0;
......@@ -1416,7 +1416,7 @@ void UDS_Service_27_Indication ( uint32_t A_TA_type, uint16_t A_Length, uint8_t
//将27服务状态写入flash
Write_27_DATA_TO_FLASH();
//尝试次数超过设定值,开启10s定时器尝试次数减1,返回36负反馈
if ( diag27.attemptcnt >= 2 )
if ( diag27.attemptcnt >= 1 )
{
Wait10sFlag = 1; //10秒计时器打开
wait10cnt = 0;
......
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