optimisation: compare uint16_t against uint16_t

We're assigning step_rate with the 16-bit value of final_rate
I would expect the comparison to be 16-bit also then.

Change in memory:
Flash: -32 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-05-19 00:25:05 +00:00 committed by DRracer
parent 2d461572dd
commit b6572066f4
1 changed files with 1 additions and 1 deletions

View File

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