Localize stepper-specific defines

This commit is contained in:
Scott Lahteine
2018-06-12 17:28:57 -05:00
parent a9861a780e
commit 0d79128c8d
3 changed files with 166 additions and 159 deletions

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;