diff --git a/Firmware/stepper.cpp b/Firmware/stepper.cpp index e85b5fad7..7e511c7a3 100644 --- a/Firmware/stepper.cpp +++ b/Firmware/stepper.cpp @@ -863,7 +863,7 @@ FORCE_INLINE void isr() { step_rate = acc_step_rate - step_rate; // Decelerate from acceleration end point. // lower limit - if (step_rate < current_block->final_rate) + if (step_rate < uint16_t(current_block->final_rate)) step_rate = uint16_t(current_block->final_rate); }