diff --git a/Marlin/src/module/stepper.h b/Marlin/src/module/stepper.h index 14617633eba70..b7cc8165fb03b 100644 --- a/Marlin/src/module/stepper.h +++ b/Marlin/src/module/stepper.h @@ -341,9 +341,9 @@ constexpr ena_mask_t enable_overlap[] = { TERN0(INPUT_SHAPING_Y, DMF.y * SPU.y); #if defined(__AVR__) || !defined(ADAPTIVE_STEP_SMOOTHING) // MIN_STEP_ISR_FREQUENCY is known at compile time on AVRs and any reduction in SRAM is welcome + constexpr feedRate_t _DMF[] = DEFAULT_MAX_FEEDRATE; + constexpr float _DASU[] = DEFAULT_AXIS_STEPS_PER_UNIT; template constexpr float max_isr_rate() { - constexpr feedRate_t _DMF[] = DEFAULT_MAX_FEEDRATE; - constexpr float _DASU[] = DEFAULT_AXIS_STEPS_PER_UNIT; return _MAX(_DMF[INDEX - 1] * _DASU[INDEX - 1], max_isr_rate()); } template<> constexpr float max_isr_rate<0>() {