Localize stepper-specific defines

This commit is contained in:
Scott Lahteine committed 2018-06-12 21:16:54 -05:00
1 parent a9861a780e
commit 0d79128c8d
3 files changed
+166 -159

No files matched your search

+1 -1
View File
@@ -1664,7 +1664,7 @@ uint32_t Stepper::stepper_block_phase_isr() {
uint32_t max_rate = current_block->nominal_rate; // Get the maximum rate (maximum event speed)
while (max_rate < MIN_STEP_ISR_FREQUENCY) {
max_rate <<= 1;
if (max_rate >= MAX_1X_STEP_ISR_FREQUENCY) break;
if (max_rate >= MAX_STEP_ISR_FREQUENCY_1X) break;
++oversampling;
}
oversampling_factor = oversampling;