Skip to content

Commit

Permalink
pump delay correction (0.666 => 0.6)
Browse files Browse the repository at this point in the history
  • Loading branch information
banoz committed Mar 5, 2024
1 parent a45165b commit 7ab85a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/peripherals/pump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ int getCPS(void) {
watchdogReload();
if (cps > 80u) {
pump.setDivider(2);
pump.initTimer(cps > 110u ? 60u : 50u, TIM9);
pump.initTimer(cps > 110u ? 5000u : 6000u, TIM9);
}
else {
pump.initTimer(cps > 55u ? 60u : 50u, TIM9);
pump.initTimer(cps > 55u ? 5000u : 6000u, TIM9);
}
return cps;
}
Expand Down

0 comments on commit 7ab85a1

Please sign in to comment.