🩹 Fix _MAX type warning (#27272)
This commit is contained in:
@@ -299,7 +299,7 @@ class Stepper {
|
||||
// and avoid the most unreasonably slow step rates.
|
||||
static constexpr uint32_t minimal_step_rate = (
|
||||
#ifdef CPU_32_BIT
|
||||
_MAX((STEPPER_TIMER_RATE) / HAL_TIMER_TYPE_MAX, 1U) // 32-bit shouldn't go below 1
|
||||
_MAX((uint32_t(STEPPER_TIMER_RATE) / HAL_TIMER_TYPE_MAX), 1U) // 32-bit shouldn't go below 1
|
||||
#else
|
||||
(F_CPU) / 500000U // AVR shouldn't go below 32 (16MHz) or 40 (20MHz)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user