Skip to content

Commit

Permalink
bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Olli-Pekka Heinisuo committed Jul 1, 2011
1 parent 43d5510 commit 9661e0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions intervalometer_dolly.pde
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ if (c>330 && c<370)
n++;
}
if (n < 10) { // can't show numbers bigger than 9
return speed[n];
return n;
}
else { // if value goes over 9, automatic reset will occur
return speed[9];
return n=0;
}

}
Expand Down Expand Up @@ -360,7 +360,7 @@ lcd.print(counter);

// Set the motor speed, 0 slowest and 9 fastest

motor.setSpeed(n);
motor.setSpeed(speed[n]);

if (s == 1) {

Expand Down

0 comments on commit 9661e0e

Please sign in to comment.