Skip to content

Commit

Permalink
check mashine state befor turn off pump
Browse files Browse the repository at this point in the history
For MOMENTARY switch:
check if mashine is in kHotWater befor turn of pump like with toggle switch
this should prevent that a call of checkHotWaterSwitch could turn of the pump during a brew
  • Loading branch information
LoQue90 committed Oct 11, 2024
1 parent 150560a commit 68019d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hotWaterHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ void checkHotWaterSwitch() {
pumpRelay.on();
}
else {
hotWaterOn = 0;
pumpRelay.off();
if (machineState == kHotWater) {
hotWaterOn = 0;
pumpRelay.off();
}
}
}
}
Expand Down

0 comments on commit 68019d7

Please sign in to comment.