Skip to content

Commit

Permalink
timerEnd() needs to happen after timerDetachInterrupt()
Browse files Browse the repository at this point in the history
  • Loading branch information
crankyoldgit committed May 4, 2023
1 parent 1c4c47e commit 34b9188
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 @@ -399,8 +399,8 @@ void IRrecv::disableIRIn(void) {
#endif // ESP8266
#if defined(ESP32)
timerAlarmDisable(timer);
timerEnd(timer);
timerDetachInterrupt(timer);
timerEnd(timer);
#endif // ESP32
detachInterrupt(params.recvpin);
#endif // UNIT_TEST
Expand Down

0 comments on commit 34b9188

Please sign in to comment.