Skip to content

Commit 652921b

Browse files
BorisKofmanBorisKofman
authored andcommitted
Update IRrecv.cpp
1 parent 1eb1443 commit 652921b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IRrecv.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ static void USE_IRAM_ATTR gpio_intr() {
237237
// USE_IRAM_ATTR in this ISR.
238238
// @see https://github.com/crankyoldgit/IRremoteESP8266/issues/1350
239239
// @see https://github.com/espressif/arduino-esp32/blob/6b0114366baf986c155e8173ab7c22bc0c5fcedc/cores/esp32/esp32-hal-timer.c#L106-L110
240-
timer->dev->load_high = (uint32_t) 0;
241-
timer->dev->load_low = (uint32_t) 0;
240+
timer->dev->load_high = static_cast<uint32_t>(0);
241+
timer->dev->load_low = static_cast<uint32_t>(0);
242242
timer->dev->reload = 1;
243243
// The next line is the same, but instead replaces:
244244
// `timerAlarmEnable(timer);`

0 commit comments

Comments
 (0)