Skip to content

Commit

Permalink
Fix for working with multiplier 32 (1/32 microstep driver)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggotskalo authored Mar 27, 2018
1 parent 5a9ca3a commit 7040570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exec.ino
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ void exec_drawBetweenPoints(float p1a, float p1b, float p2a, float p2b, int maxS
float deltaY = c2y-c1y;
// float totalDistance = sqrt(sq(deltaX) + sq(deltaY));

int linesegs = 1; // assume at least 1 line segment will get us there.
long linesegs = 1; // assume at least 1 line segment will get us there.
if (abs(deltaX) > abs(deltaY))
{
// slope <=1 case
Expand Down

0 comments on commit 7040570

Please sign in to comment.