diff --git a/Marlin/src/module/stepper.h b/Marlin/src/module/stepper.h index 46b3493bb6e6..511a3aa80dac 100644 --- a/Marlin/src/module/stepper.h +++ b/Marlin/src/module/stepper.h @@ -299,7 +299,7 @@ class Stepper { // and avoid the most unreasonably slow step rates. static constexpr uint32_t minimal_step_rate = ( #ifdef CPU_32_BIT - _MAX((STEPPER_TIMER_RATE) / HAL_TIMER_TYPE_MAX, 1U) // 32-bit shouldn't go below 1 + _MAX((uint32_t(STEPPER_TIMER_RATE) / HAL_TIMER_TYPE_MAX), 1U) // 32-bit shouldn't go below 1 #else (F_CPU) / 500000U // AVR shouldn't go below 32 (16MHz) or 40 (20MHz) #endif