🩹 Fix 'interval' type warning

Resolves #28156
This commit is contained in:
Scott Lahteine 2025-11-03 17:51:55 -06:00
parent e9810691ec
commit 1774dbd539

View file

@ -1586,7 +1586,7 @@ void Stepper::isr() {
#endif
// Get the interval to the next ISR call
interval = uint32_t(STEPPER_TIMER_RATE * 0.030); // Max wait of 30ms regardless of stepper timer frequency
interval = hal_timer_t(STEPPER_TIMER_RATE * 0.03); // Max wait of 30ms regardless of stepper timer frequency
NOMORE(interval, nextMainISR); // Time until the next Pulse / Block phase
TERN_(INPUT_SHAPING_X, NOMORE(interval, ShapingQueue::peek_x())); // Time until next input shaping echo for X
TERN_(INPUT_SHAPING_Y, NOMORE(interval, ShapingQueue::peek_y())); // Time until next input shaping echo for Y