Commit 79ee0dd8 authored by 李俭双's avatar 李俭双

🐞 fix:解决燃油有车速时无变化的问题

parent 04ad070f
...@@ -183,7 +183,7 @@ void Fuel_State_Check(uint8_t deltaTime) ...@@ -183,7 +183,7 @@ void Fuel_State_Check(uint8_t deltaTime)
void Fuel_Gauges_Cal(uint8_t deltaTime) void Fuel_Gauges_Cal(uint8_t deltaTime)
{ {
static uint16_t time = 0; static uint32_t time = 0;
if ((FuelSensorState == FuelSensorNormal) && (FuelR < 10000)) if ((FuelSensorState == FuelSensorNormal) && (FuelR < 10000))
{ // 32000 //FuelR >10 change FuelR >20 { // 32000 //FuelR >10 change FuelR >20
/*采集完第一组数据后,开始计算燃油格数*/ /*采集完第一组数据后,开始计算燃油格数*/
......
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