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

Cannot build with esp32 platform 3.0.0 or higher #2169

Closed
Ks89 opened this issue Dec 23, 2024 · 2 comments
Closed

Cannot build with esp32 platform 3.0.0 or higher #2169

Ks89 opened this issue Dec 23, 2024 · 2 comments

Comments

@Ks89
Copy link

Ks89 commented Dec 23, 2024

Version/revision of the library used

2.8.6

Describe the bug

Cannot build my sketch with esp32 platform 3.0.0 or higher. With 2.0.17 it's ok.

To Reproduce

Install esp32 platform 3.1.0 and build the project for esp32s2 dev module

Example code used

My project https://github.com/home-anthill/devices/tree/develop/device-ac-lg

Expected behaviour

To build the project without errors.

Output of raw data from [IRrecvDumpV2.ino]

/Users/ks89/Documents/Arduino/libraries/IRremoteESP8266/src/IRrecv.cpp: In function 'void gpio_intr()':
/Users/ks89/Documents/Arduino/libraries/IRremoteESP8266/src/IRrecv.cpp:246:3: error: 'timerAlarmEnable' was not declared in this scope; did you mean 'timerAlarm'?
  246 |   timerAlarmEnable(timer);
      |   ^~~~~~~~~~~~~~~~
      |   timerAlarm
/Users/ks89/Documents/Arduino/libraries/IRremoteESP8266/src/IRrecv.cpp: In member function 'void IRrecv::enableIRIn(bool)':
/Users/ks89/Documents/Arduino/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 /Users/ks89/Library/Arduino15/packages/esp32/hardware/esp32/3.1.0/cores/esp32/esp32-hal.h:98,
                 from /Users/ks89/Library/Arduino15/packages/esp32/hardware/esp32/3.1.0/cores/esp32/Arduino.h:36,
                 from /Users/ks89/Documents/Arduino/libraries/IRremoteESP8266/src/IRrecv.h:10,
                 from /Users/ks89/Documents/Arduino/libraries/IRremoteESP8266/src/IRrecv.cpp:6:
/Users/ks89/Library/Arduino15/packages/esp32/hardware/esp32/3.1.0/cores/esp32/esp32-hal-timer.h:35:13: note: declared here
   35 | hw_timer_t *timerBegin(uint32_t frequency);
      |             ^~~~~~~~~~
/Users/ks89/Documents/Arduino/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
/Users/ks89/Documents/Arduino/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);
      |   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ks89/Library/Arduino15/packages/esp32/hardware/esp32/3.1.0/cores/esp32/esp32-hal-timer.h:50:6: note: declared here
   50 | void timerAttachInterrupt(hw_timer_t *timer, void (*userFunc)(void));
      |      ^~~~~~~~~~~~~~~~~~~~
/Users/ks89/Documents/Arduino/libraries/IRremoteESP8266/src/IRrecv.cpp: In member function 'void IRrecv::disableIRIn()':
/Users/ks89/Documents/Arduino/libraries/IRremoteESP8266/src/IRrecv.cpp:401:3: error: 'timerAlarmDisable' was not declared in this scope
  401 |   timerAlarmDisable(timer);
      |   ^~~~~~~~~~~~~~~~~
/Users/ks89/Documents/Arduino/libraries/IRremoteESP8266/src/IRrecv.cpp: In member function 'void IRrecv::resume()':
/Users/ks89/Documents/Arduino/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

Am I missing something?

@NiKiZe
Copy link
Collaborator

NiKiZe commented Dec 23, 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 Dec 23, 2024
@Ks89
Copy link
Author

Ks89 commented Dec 23, 2024

@NiKiZe Yes with #2144 I can build the project

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