Skip to content

Commit

Permalink
silly constexpr rule
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Dec 7, 2022
1 parent 19d26ce commit 2a1eb50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/module/stepper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<int INDEX=DISTINCT_AXES> 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<INDEX - 1>());
}
template<> constexpr float max_isr_rate<0>() {
Expand Down

0 comments on commit 2a1eb50

Please sign in to comment.