Skip to content

Commit 1774dbd

Browse files
committed
🩹 Fix 'interval' type warning
Resolves #28156
1 parent e981069 commit 1774dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/module/stepper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,7 @@ void Stepper::isr() {
15861586
#endif
15871587

15881588
// Get the interval to the next ISR call
1589-
interval = uint32_t(STEPPER_TIMER_RATE * 0.030); // Max wait of 30ms regardless of stepper timer frequency
1589+
interval = hal_timer_t(STEPPER_TIMER_RATE * 0.03); // Max wait of 30ms regardless of stepper timer frequency
15901590
NOMORE(interval, nextMainISR); // Time until the next Pulse / Block phase
15911591
TERN_(INPUT_SHAPING_X, NOMORE(interval, ShapingQueue::peek_x())); // Time until next input shaping echo for X
15921592
TERN_(INPUT_SHAPING_Y, NOMORE(interval, ShapingQueue::peek_y())); // Time until next input shaping echo for Y

0 commit comments

Comments
 (0)