From f1dbfaf706ad2e00e1ca49c09ca8790a950a70c0 Mon Sep 17 00:00:00 2001 From: felixstorm Date: Tue, 4 Feb 2020 01:36:51 +0100 Subject: [PATCH] Fix warning for ESP32 (#16771) --- Marlin/src/HAL/HAL_ESP32/timers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/HAL/HAL_ESP32/timers.cpp b/Marlin/src/HAL/HAL_ESP32/timers.cpp index 654df79067ca..ef181a438ca6 100644 --- a/Marlin/src/HAL/HAL_ESP32/timers.cpp +++ b/Marlin/src/HAL/HAL_ESP32/timers.cpp @@ -106,7 +106,7 @@ void HAL_timer_start(const uint8_t timer_num, uint32_t frequency) { timer_enable_intr(timer.group, timer.idx); - timer_isr_register(timer.group, timer.idx, timer_isr, (void*)timer_num, 0, nullptr); + timer_isr_register(timer.group, timer.idx, timer_isr, (void*)(uint32_t)timer_num, 0, nullptr); timer_start(timer.group, timer.idx); }