Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #47 from hazcat/fix_encoder
Browse files Browse the repository at this point in the history
fix for logic error in encoder
  • Loading branch information
i-make-robots authored Nov 19, 2018
2 parents dbee104 + 2308afb commit 0fe1ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lcd.ino
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ void LCD_driveF() {

if (lcd_turn) {
// protect servo, don't drive beyond physical limits
float newF = feed_rate + lcd_turn > 0 ? 1 : -1;
float newF = feed_rate + (lcd_turn > 0 ? 1 : -1);
if (newF < MIN_FEEDRATE) newF = MIN_FEEDRATE;
if (newF > MAX_FEEDRATE) newF = MAX_FEEDRATE;
// move
Expand Down

0 comments on commit 0fe1ad9

Please sign in to comment.