From 93c84f31e28298d2b355bf3dfef1d02348b65c4c Mon Sep 17 00:00:00 2001 From: BorisKofman Date: Fri, 6 Sep 2024 18:14:30 +0300 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 7ba3f46cc..999b2caac 100644 --- a/src/IRrecv.cpp +++ b/src/IRrecv.cpp @@ -247,7 +247,7 @@ static void USE_IRAM_ATTR gpio_intr() { (ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0)) // For ESP32 core version 3.x, replace `timerAlarmEnable` timerWrite(timer, 0); - timerAlarm(timer, 0, true, 0); // Use the updated function with all arguments + timerAlarm(timer, 0, true, 0); // Use the updated function #else // For ESP32 core version 2.x, keep using `timerAlarmEnable` timerWrite(timer, 0); @@ -370,7 +370,7 @@ void IRrecv::enableIRIn(const bool pullup) { #if defined(ESP32) // Initialise the ESP32 timer. // 80MHz / 80 = 1 uSec granularity. - // Check for ESP32 core version and handle timerBegin differently for each version + // Check for ESP32 core version and handle timerBegin differently #if defined(ESP_ARDUINO_VERSION) && \ (ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0)) // For ESP32 core version 3.x (three arguments)