need to reset TravelDistance after LubePulse
This commit is contained in:
parent
829e70d11a
commit
402535051a
@ -21,8 +21,10 @@ void RunLubeApp(volatile uint32_t *wheelPulseCounter)
|
||||
break;
|
||||
}
|
||||
|
||||
if (TravelDistance_highRes > LubeDistance)
|
||||
if (TravelDistance_highRes > LubeDistance){
|
||||
lubePulseTimestamp = millis() + LUBE_PULSE_LENGHT_MS;
|
||||
TravelDistance_highRes = 0;
|
||||
}
|
||||
|
||||
//maintain Pin-State of Lube-Pump
|
||||
if (lubePulseTimestamp > millis())
|
||||
|
Loading…
x
Reference in New Issue
Block a user