Commit 491c4b67 authored by 陈家乐's avatar 陈家乐

🐞 fix:trip存储删除没有用到的部分

parent 8dca87f6
...@@ -37,9 +37,9 @@ Platform_16Bit ...@@ -37,9 +37,9 @@ Platform_16Bit
typedef enum typedef enum
{ {
EM_TRIP_A, EM_TRIP_A,
EM_TRIP_B, //EM_TRIP_B,
EM_TRIP_C, //EM_TRIP_C,
EM_TRIP_D, //EM_TRIP_D,
EM_TRIP_MAX, EM_TRIP_MAX,
} DataTripEnum_t; } DataTripEnum_t;
......
...@@ -67,7 +67,7 @@ void Data_User_Mileage_KL30Init(void) ...@@ -67,7 +67,7 @@ void Data_User_Mileage_KL30Init(void)
ODOInit.MaxValue = 1999990; ODOInit.MaxValue = 1999990;
Data_ODO_KL30_Init(DataODOBuf, &ODOInit, Func.EEPromWrite_Cbk); Data_ODO_KL30_Init(DataODOBuf, &ODOInit, Func.EEPromWrite_Cbk);
(void)Data_User_EEPROM_Read(EM_TRIP_BLOCK, TempBuf + 3, 4); (void)Data_User_EEPROM_Read(EM_TRIP_BLOCK, TempBuf + 3, 1);
if (TempBuf[3] == 0XFFFFFFFF) if (TempBuf[3] == 0XFFFFFFFF)
{ {
TripInit[EM_TRIP_A].Stamp = 0; TripInit[EM_TRIP_A].Stamp = 0;
...@@ -88,17 +88,17 @@ void Data_User_Mileage_KL30Init(void) ...@@ -88,17 +88,17 @@ void Data_User_Mileage_KL30Init(void)
TripInit[EM_TRIP_A].MaxValue = 9999; /* 最大999.9km 进行复位 */ TripInit[EM_TRIP_A].MaxValue = 9999; /* 最大999.9km 进行复位 */
TripInit[EM_TRIP_A].IsRestart = 1u; TripInit[EM_TRIP_A].IsRestart = 1u;
TripInit[EM_TRIP_B].Stamp = 0xFFFFFFFFu; //TripInit[EM_TRIP_B].Stamp = 0xFFFFFFFFu;
TripInit[EM_TRIP_B].MaxValue = 99999; //TripInit[EM_TRIP_B].MaxValue = 99999;
TripInit[EM_TRIP_B].IsRestart = 1u; //TripInit[EM_TRIP_B].IsRestart = 1u;
//
TripInit[EM_TRIP_C].Stamp = 0xFFFFFFFFu; //TripInit[EM_TRIP_C].Stamp = 0xFFFFFFFFu;
TripInit[EM_TRIP_C].MaxValue = 99999; //TripInit[EM_TRIP_C].MaxValue = 99999;
TripInit[EM_TRIP_C].IsRestart = 1u; //TripInit[EM_TRIP_C].IsRestart = 1u;
//
TripInit[EM_TRIP_D].Stamp = 0xFFFFFFFFu; //TripInit[EM_TRIP_D].Stamp = 0xFFFFFFFFu;
TripInit[EM_TRIP_D].MaxValue = 99999; //TripInit[EM_TRIP_D].MaxValue = 99999;
TripInit[EM_TRIP_D].IsRestart = 1u; //TripInit[EM_TRIP_D].IsRestart = 1u;
Data_Trip_KL30_Init(DataTripBuf, TripInit, EM_TRIP_MAX, Func.EEPromWrite_Cbk); Data_Trip_KL30_Init(DataTripBuf, TripInit, EM_TRIP_MAX, Func.EEPromWrite_Cbk);
//Data_User_EEPROM_Read(EM_MenuData_Tcs_Val, TempBuf, 1u); //Data_User_EEPROM_Read(EM_MenuData_Tcs_Val, TempBuf, 1u);
......
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