diff --git a/Marlin/src/module/stepper.cpp b/Marlin/src/module/stepper.cpp index eb4957ec2e..eaac7f5504 100644 --- a/Marlin/src/module/stepper.cpp +++ b/Marlin/src/module/stepper.cpp @@ -1298,7 +1298,7 @@ void Stepper::isr() { ; // Limit the value to the maximum possible value of the timer - NOMORE(interval, HAL_TIMER_TYPE_MAX); + NOMORE(interval, uint32_t(HAL_TIMER_TYPE_MAX)); // Compute the time remaining for the main isr nextMainISR -= interval;