Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

irrecv.enableIRIn(); = guru meditation "cache region accessed but cache disabled" #4

Open
matbks opened this issue Jul 3, 2019 · 1 comment

Comments

@matbks
Copy link

matbks commented Jul 3, 2019

Could anyone make a disableIRin() function?
Not being able to turn it off is making it impossible for me to use spiffs or webserver some times.

#espressif/arduino-esp32#2953

@matbks
Copy link
Author

matbks commented Jul 4, 2019

Hello @matbks, this worked for me:
I implemented a disableIRIn-Function that calls the reverse functions of the enableIRIn()-Function. Maybe not the most elegant way, but at least it worked on my side.

void IRrecv::disableIRIn() { // Initialize state machine variables irparams.rcvstate = STATE_IDLE; irparams.rawlen = 0; timerEnd(timer); timerAlarmDisable(timer); timerDetachInterrupt(timer); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant