Skip to content

Commit a4382b4

Browse files
committed
🧑‍💻 Fix max_isr_rate sign warnings
1 parent d5723fc commit a4382b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/module/stepper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ constexpr ena_mask_t enable_overlap[] = {
147147
TERN0(INPUT_SHAPING_Z, _ISDMF[Z_AXIS] * _ISDASU[Z_AXIS]);
148148
#if defined(__AVR__) || !defined(ADAPTIVE_STEP_SMOOTHING)
149149
// min_step_isr_frequency is known at compile time on AVRs and any reduction in SRAM is welcome
150-
template<unsigned int INDEX=DISTINCT_AXES> constexpr float max_isr_rate() {
150+
template<int INDEX=DISTINCT_AXES> constexpr float max_isr_rate() {
151151
return _MAX(_ISDMF[ALIM(INDEX - 1, _ISDMF)] * _ISDASU[ALIM(INDEX - 1, _ISDASU)], max_isr_rate<INDEX - 1>());
152152
}
153153
template<> constexpr float max_isr_rate<0>() {

0 commit comments

Comments
 (0)