summaryrefslogtreecommitdiff
path: root/Tonokip_Firmware/Tonokip_Firmware.pde
diff options
context:
space:
mode:
Diffstat (limited to 'Tonokip_Firmware/Tonokip_Firmware.pde')
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde
index 607dc76..802f8a5 100644
--- a/Tonokip_Firmware/Tonokip_Firmware.pde
+++ b/Tonokip_Firmware/Tonokip_Firmware.pde
@@ -914,6 +914,9 @@ void linear_move(unsigned long x_steps_remaining, unsigned long y_steps_remainin
#ifdef STEP_DELAY_RATIO
if(timediff >= interval) delayMicroseconds(long_step_delay_ratio * interval / 10000);
#endif
+ #ifdef STEP_DELAY_MICROS
+ if(timediff >= interval) delayMicroseconds(STEP_DELAY_MICROS);
+ #endif
}
} else if (steep_x) {
timediff=micros() * 100 - previous_micros_x;
@@ -930,6 +933,9 @@ void linear_move(unsigned long x_steps_remaining, unsigned long y_steps_remainin
#ifdef STEP_DELAY_RATIO
if(timediff >= interval) delayMicroseconds(long_step_delay_ratio * interval / 10000);
#endif
+ #ifdef STEP_DELAY_MICROS
+ if(timediff >= interval) delayMicroseconds(STEP_DELAY_MICROS);
+ #endif
}
}
}
@@ -946,6 +952,9 @@ void linear_move(unsigned long x_steps_remaining, unsigned long y_steps_remainin
#ifdef STEP_DELAY_RATIO
if(timediff >= z_interval) delayMicroseconds(long_step_delay_ratio * z_interval / 10000);
#endif
+ #ifdef STEP_DELAY_MICROS
+ if(timediff >= z_interval) delayMicroseconds(STEP_DELAY_MICROS);
+ #endif
}
}
@@ -966,6 +975,9 @@ void linear_move(unsigned long x_steps_remaining, unsigned long y_steps_remainin
#ifdef STEP_DELAY_RATIO
if(timediff >= e_interval) delayMicroseconds(long_step_delay_ratio * e_interval / 10000);
#endif
+ #ifdef STEP_DELAY_MICROS
+ if(timediff >= e_interval) delayMicroseconds(STEP_DELAY_MICROS);
+ #endif
}
}