Skip to content

Commit

Permalink
🩹 Fix _MAX type warning (#27272)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored Jul 15, 2024
1 parent 5334a8f commit 5140726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/module/stepper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5140726

Please sign in to comment.