chiark
/
gitweb
/
~ianmdlvl
/
marlin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ca2f33
)
Fixed typo in arc
author
Erik van der Zalm
<erik@vdzalm.eu>
Mon, 2 Apr 2012 15:19:20 +0000
(17:19 +0200)
committer
Erik van der Zalm
<erik@vdzalm.eu>
Mon, 2 Apr 2012 15:19:20 +0000
(17:19 +0200)
Marlin/motion_control.cpp
patch
|
blob
|
history
diff --git
a/Marlin/motion_control.cpp
b/Marlin/motion_control.cpp
index 5e793a279b9dfc630f4169c3b172ce49b7c3c86b..f11d8c8b8e5ec6b24e7cf512d6f6a8b8a96c6f04 100644
(file)
--- a/
Marlin/motion_control.cpp
+++ b/
Marlin/motion_control.cpp
@@
-47,7
+47,7
@@
void mc_arc(float *position, float *target, float *offset, uint8_t axis_0, uint8
float millimeters_of_travel = hypot(angular_travel*radius, fabs(linear_travel));
if (millimeters_of_travel < 0.001) { return; }
uint16_t segments = floor(millimeters_of_travel/MM_PER_ARC_SEGMENT);
- if(segments = 0) segments = 1;
+ if(segments =
=
0) segments = 1;
/*
// Multiply inverse feed_rate to compensate for the fact that this movement is approximated