Skip to content

Commit f4db0d9

Browse files
BorisKofmanzehnm
authored andcommitted
Update IRrecv.cpp
1 parent a0fd7d4 commit f4db0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IRrecv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ void IRrecv::enableIRIn(const bool pullup) {
387387
timer = timerBegin(1000000); // Initialize with 1MHz (1us per tick)
388388
#else
389389
// Fallback for ESP32 core version 2.x or earlier
390-
timer = timerBegin(0, 1000000, true); // Old signature with divider
390+
timer = timerBegin(_timer_num, 80, true);
391391
#endif // ARDUINO_COREV3
392392

393393
// Ensure the timer is successfully initialized

0 commit comments

Comments
 (0)