Skip to content

Commit

Permalink
Update IRrecv.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisKofman committed Sep 17, 2024
1 parent 5d9da88 commit 1b0f35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IRrecv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static void USE_IRAM_ATTR gpio_intr() {
// For ESP32 core version 3.x, replace `timerAlarmEnable`
timerWrite(timer, 0);
uint64_t alarm_value = 50000; // Example value (50ms)
timerAlarm(timer, alarm_value, false, 0); // Disable auto-reloadmer, alarm_value, false, 0); // Disable auto-reload
timerAlarm(timer, alarm_value, false, 0);
#else
// For ESP32 core version 2.x, keep using `timerAlarmEnable`
timerWrite(timer, 0);
Expand Down

0 comments on commit 1b0f35f

Please sign in to comment.