Skip to content

Commit 27a3f72

Browse files
committed
Fixed bug in example
1 parent 1def894 commit 27a3f72

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/two_pumps/two_pumps.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ void loop() {
3737
force.trial_start = millis();
3838
force.trial_length = millis() - force.trial_start;
3939
force.Tare();
40-
while (millis()-(force.trial_length < force.trial_window)) {
40+
while (force.trial_length < force.trial_window) {
4141
force.trial_length = millis() - force.trial_start;
42+
Serial.println(force.trial_length);
4243
force.run();
4344
force.SenseLeft();
4445
if (force.pressLengthLeft > force.hold_timeLeft) {

0 commit comments

Comments
 (0)