解决ew充末电流异常的bug,解决ew快速配置2比对数据错误的bug

This commit is contained in:
ranchuan
2023-12-16 11:35:26 +08:00
parent e4fde0a436
commit 8f28200ffe
3 changed files with 4 additions and 2 deletions

View File

@@ -291,3 +291,5 @@
添加 总线翻转任务 JQ_Test_Toggle
2023.12.15
解决ew写配置错误的bug升级ew程序不更改配置区
2023.12.16
解决ew充末电流异常的bug解决ew快速配置2比对数据错误的bug

View File

@@ -1364,7 +1364,7 @@ uint8_t EW_FastSetByUID(uint16_t addr,uint16_t delay,uint8_t* uid,uint8_t uid_le
}
delay_ms(2);
uc_ack = DMod_FireBusReadDatasV2(ack_data,2,EW_DMOD_READ_Timeout);
if(ack_data[0] != EW_CommBuf[2] || ack_data[1] != EW_CommBuf[2])
if(ack_data[0] != EW_CommBuf[2] || ack_data[1] != EW_CommBuf[3])
{
return 1;
}

View File

@@ -539,7 +539,7 @@ void EW_Test_ChgEnergy(void)
while(us_timeout > 0)
{
us_array[3] = ADC_GetBaseStableCur();
Bubble_Sort_u16(us_array,3);
Bubble_Sort_u16(us_array,4);
us_end_cur = us_array[0];