Skip to content

Commit

Permalink
Fix warning for ESP32 (#16771)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixstorm-c4a8 authored Feb 4, 2020
1 parent 7d4fa9d commit f1dbfaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/HAL/HAL_ESP32/timers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f1dbfaf

Please sign in to comment.