Skip to content

Conversation

@crankyoldgit
Copy link
Owner

When IRrecv::enableIRn() was called after a IRrecv::disableIRn() call the ESP32 would produce a kernel message/warning on the serial port. e.g.:

[E][esp32-hal-cpu.c:93] addApbChangeCallback(): duplicate func=400814C4 arg=3FFBDFC4

if the ESP32 IDF 3.3 (v1.0.5) was used.

Fix the issue by ensuring a timerEnd() call is made in the disableIRIn() call to properly clean up the timer.

Tested on an ESP32dev board. Confirmed the message no longer appears.

Fixes #1434

When `IRrecv::enableIRn()` was called after a `IRrecv::disableIRn()` call the ESP32 would produce a kernel message/warning on the serial port. e.g.:
```
[E][esp32-hal-cpu.c:93] addApbChangeCallback(): duplicate func=400814C4 arg=3FFBDFC4
```
if ESP32 IDF 3.3 (v1.0.5) was used.

Fix the issue by ensuring a `timerEnd()` call is made in the `disableIRIn()` call to properly clean up the timer.

Fixes #1434
@crankyoldgit crankyoldgit added enhancement ESP32 ESP32 only issue labels Mar 21, 2021
@crankyoldgit crankyoldgit self-assigned this Mar 21, 2021
@crankyoldgit
Copy link
Owner Author

Thanks @NiKiZe. That was super fast! You even beat the CI/Travis checks, which I now need to wait for ...

@crankyoldgit crankyoldgit merged commit 60db0d3 into master Mar 21, 2021
@crankyoldgit crankyoldgit deleted the Issue1434 branch March 21, 2021 14:37
crankyoldgit added a commit that referenced this pull request Mar 24, 2021
_v2.7.16 (20210324)_

**[Features]**
- ToshibaAC: Swing handling and `setRaw()` improvements. (#1423 #1424 #1425)
- Support for XMP (Xfinity) protocol. (#1414 #1422)
- ToshibaAC: Adjust inter-message gap timing to improve matching. (#1420 #1421)
- Ecoclim: Add detailed A/C support (#1397 #1415)

**[Misc]**
- [ESP32] Fix `addApbChangeCallback(): duplicate func` kernel msgs (#1434 #1435)
- refactor ir_Fujitsu (#1419)
- refactor ir_Whirlpool (#1416)
- refactor ir_Vestel (#1413)
- refactor ir_Trotec (#1412)
@crankyoldgit crankyoldgit mentioned this pull request Mar 24, 2021
crankyoldgit added a commit that referenced this pull request Mar 24, 2021
## _v2.7.16 (20210324)_

**[Features]**
- ToshibaAC: Swing handling and `setRaw()` improvements. (#1423 #1424 #1425)
- Support for XMP (Xfinity) protocol. (#1414 #1422)
- ToshibaAC: Adjust inter-message gap timing to improve matching. (#1420 #1421)
- Ecoclim: Add detailed A/C support (#1397 #1415)

**[Misc]**
- [ESP32] Fix `addApbChangeCallback(): duplicate func` kernel msgs (#1434 #1435)
- refactor ir_Fujitsu (#1419)
- refactor ir_Whirlpool (#1416)
- refactor ir_Vestel (#1413)
- refactor ir_Trotec (#1412)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement ESP32 ESP32 only issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calling enableIRIn() triggers ESP32 kernel error message

2 participants