Skip to content

Commit

Permalink
pump delay correction (0.666 => 0.6) (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0-bit committed Mar 30, 2024
2 parents a45165b + 7ab85a1 commit 4c96ff0
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 4c96ff0

Please sign in to comment.