From 652921bb12866b838c15278468e9eb88b72a4e7e Mon Sep 17 00:00:00 2001 From: BorisKofman Date: Wed, 20 Nov 2024 10:55:42 +0200 Subject: [PATCH] Update IRrecv.cpp --- src/IRrecv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IRrecv.cpp b/src/IRrecv.cpp index c37be944d..535578810 100644 --- a/src/IRrecv.cpp +++ b/src/IRrecv.cpp @@ -237,8 +237,8 @@ static void USE_IRAM_ATTR gpio_intr() { // USE_IRAM_ATTR in this ISR. // @see https://github.com/crankyoldgit/IRremoteESP8266/issues/1350 // @see https://github.com/espressif/arduino-esp32/blob/6b0114366baf986c155e8173ab7c22bc0c5fcedc/cores/esp32/esp32-hal-timer.c#L106-L110 - timer->dev->load_high = (uint32_t) 0; - timer->dev->load_low = (uint32_t) 0; + timer->dev->load_high = static_cast(0); + timer->dev->load_low = static_cast(0); timer->dev->reload = 1; // The next line is the same, but instead replaces: // `timerAlarmEnable(timer);`