Commit 601ec995 authored by 陈家乐's avatar 陈家乐

🐞 fix:QAC问题,8位变量改为16位

parent 39993776
...@@ -6,12 +6,12 @@ uint8_t DataODOBuf[Data_MEM_Block_ODO]; ...@@ -6,12 +6,12 @@ uint8_t DataODOBuf[Data_MEM_Block_ODO];
uint8_t DataTripBuf[Data_MEM_Block_Trip * EM_TRIP_MAX]; uint8_t DataTripBuf[Data_MEM_Block_Trip * EM_TRIP_MAX];
Mileage_t g_WriteMileage; Mileage_t g_WriteMileage;
Mileage_t g_ReadMileage; Mileage_t g_ReadMileage;
uint8_t odo_writeState; uint16_t odo_writeState;
uint8_t odoclr_writeState; uint16_t odoclr_writeState;
uint8_t trip_writeState; uint16_t trip_writeState;
uint8_t trip_readState; uint16_t trip_readState;
uint8_t odo_readState; uint16_t odo_readState;
uint8_t odo_readState; //uint8_t odo_readState;
uint32_t Milleage_InitFlag = 0U; uint32_t Milleage_InitFlag = 0U;
/****************************************************************************** /******************************************************************************
Function:Data_ODO_KL30Init Function:Data_ODO_KL30Init
...@@ -261,16 +261,16 @@ uint32_t Data_User_EEPROM_Read(uint16_t u16BlockID, uint32_t u32Data[], uint16_t ...@@ -261,16 +261,16 @@ uint32_t Data_User_EEPROM_Read(uint16_t u16BlockID, uint32_t u32Data[], uint16_t
while(trip_writeState != WRITE_COMPLETE) while(trip_writeState != WRITE_COMPLETE)
{ {
//eeprom_comm_DelayUs(5000); //eeprom_comm_DelayUs(5000);
trip_writeState = eeprom_WriteRecord(EEPROM_BLOCK_03, (uint8_t *)u32Data, u16Len * 4); trip_writeState = eeprom_WriteRecord(EEPROM_BLOCK_03, (uint8_t *)u32Data, u16Len * 4);
timeout++; timeout++;
if(trip_writeState == WRITE_COMPLETE) if(trip_writeState == WRITE_COMPLETE)
{ {
break; break;
} }
if(timeout >= 3) if(timeout >= 3)
{ {
return; return;
} }
} }
break; break;
......
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