From 5140726c7076a6ed373bf3fc8c0fbaec1ed1dd8d Mon Sep 17 00:00:00 2001 From: ellensp <530024+ellensp@users.noreply.github.com> Date: Tue, 16 Jul 2024 07:01:32 +1200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20=5FMAX=20type=20warning=20?= =?UTF-8?q?(#27272)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/module/stepper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/module/stepper.h b/Marlin/src/module/stepper.h index 46b3493bb6..511a3aa80d 100644 --- a/Marlin/src/module/stepper.h +++ b/Marlin/src/module/stepper.h @@ -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