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

Example IRrecvDumpV3 does not compile #2157

Closed
sevmamba opened this issue Nov 5, 2024 · 1 comment
Closed

Example IRrecvDumpV3 does not compile #2157

sevmamba opened this issue Nov 5, 2024 · 1 comment

Comments

@sevmamba
Copy link

sevmamba commented Nov 5, 2024

Version/revision of the library used

The latest 2.8.6

Describe the bug

The example that is loaded with the library does not compile. The example is IRrecvDumpV3.ino

To Reproduce

Click verify or compile. Note I did not make any changes to your example code, and I tried with and without my esp32 connected.

Example code used

Your example IRrecvDumpV3.ino

Expected behaviour

When I could not get it to compile, I uninstalled the Arduino ide 1.8.19 and deleted all the libraries I could find. Then reinstalled IDE 1.8.19 and your library but still the example would not compile, so I uninstalled everything again and installed the latest Arduino IDE 2.3.3 and installed the latest version of your library with the examples.

Output of raw data from [IRrecvDumpV2.ino]

d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp: In function 'void gpio_intr()':
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:246:3: error: 'timerAlarmEnable' was not declared in this scope; did you mean 'timerAlarm'?
246 | timerAlarmEnable(timer);
| ^~~~~~~~~~~~~~~~
| timerAlarm
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp: In member function 'void IRrecv::enableIRIn(bool)':
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:362:21: error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'
362 | timer = timerBegin(_timer_num, 80, true);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/esp32-hal.h:84,
from C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/Arduino.h:36,
from d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.h:10,
from d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:6:
C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/esp32-hal-timer.h:35:13: note: declared here
35 | hw_timer_t timerBegin(uint32_t frequency);
| ^~~~~~~~~~
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:371:3: error: 'timerAlarmWrite' was not declared in this scope; did you mean 'timerWrite'?
371 | timerAlarmWrite(timer, MS_TO_USEC(params.timeout), ONCE);
| ^~~~~~~~~~~~~~~
| timerWrite
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:375:23: error: too many arguments to function 'void timerAttachInterrupt(hw_timer_t
, void (*)())'
375 | timerAttachInterrupt(timer, &read_timeout, false);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/esp32-hal-timer.h:50:6: note: declared here
50 | void timerAttachInterrupt(hw_timer_t *timer, void (*userFunc)(void));
| ^~~~~~~~~~~~~~~~~~~~
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp: In member function 'void IRrecv::disableIRIn()':
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:401:3: error: 'timerAlarmDisable' was not declared in this scope
401 | timerAlarmDisable(timer);
| ^~~~~~~~~~~~~~~~~
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp: In member function 'void IRrecv::resume()':
d:\Users\Brian\Documents\Arduino\Projects\libraries\IRremoteESP8266\src\IRrecv.cpp:429:3: error: 'timerAlarmDisable' was not declared in this scope
429 | timerAlarmDisable(timer);
| ^~~~~~~~~~~~~~~~~

exit status 1

Compilation error: exit status 1

(https://github.com/crankyoldgit/IRremoteESP8266/blob/master/examples/IRrecvDumpV2/IRrecvDumpV2.ino) or V3 (if applicable)
Include some serial text of the raw dumps of what the device saw.

Note: Output from Tasmota is not acceptable. We can't easily use their raw format.

What brand/model IR demodulator are you using?

Not relevant as the code will not compile.

Circuit diagram and hardware used (if applicable)

Link to an image of the circuit diagram used. Part number of the IR receiver module etc. ESP8266 or ESP32 board type.

I have followed the steps in the Troubleshooting Guide & read the FAQ

Yes/No.

Has this library/code previously worked as expected for you?

Yes/No. If "Yes", which version last worked for you?
Yes, but it was a year or so ago and I did not make a note of the library version.

Other useful information

More information is always welcome. Be verbose.

@NiKiZe
Copy link
Collaborator

NiKiZe commented Nov 5, 2024

Duplicate of #2039 #2137 and others

https://github.com/search?q=repo%3Acrankyoldgit%2FIRremoteESP8266+timerAlarmEnable%28timer%29&type=issues

But could you test if #2144 is a working for you?

@NiKiZe NiKiZe closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2024
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

2 participants