summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Caruso <emanuele.caruso@gmail.com>2011-03-26 16:45:02 +0100
committerEmanuele Caruso <emanuele.caruso@gmail.com>2011-03-26 16:45:02 +0100
commitcc6260bd71a2d33c04ec5e741b94a673d78c36e5 (patch)
tree76507b1d5999566d0f4a1ef0fa547d95a077f1e3
parent0e0087ef75af8b7a798e2dadeef0ad49c7810ecb (diff)
Fixed wrong feedrate bug.
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde
index 321d013..fc106b6 100644
--- a/Tonokip_Firmware/Tonokip_Firmware.pde
+++ b/Tonokip_Firmware/Tonokip_Firmware.pde
@@ -366,7 +366,7 @@ inline void process_commands()
time_for_move = max(X_TIME_FOR_MOVE,Y_TIME_FOR_MOVE);
time_for_move = max(time_for_move,Z_TIME_FOR_MOVE);
- time_for_move = max(time_for_move,E_TIME_FOR_MOVE);
+ if(time_for_move <= 0) time_for_move = max(time_for_move,E_TIME_FOR_MOVE);
if(x_steps_to_take) x_interval = time_for_move/x_steps_to_take;
if(y_steps_to_take) y_interval = time_for_move/y_steps_to_take;