Fix NOMORE() sign warning in stepper (#13894)

This commit is contained in:
Tanguy Pruvot 2019-05-04 22:59:38 +02:00 committed by Scott Lahteine
parent 6d0ce033c2
commit 7da63fa03f

View File

@ -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;