Error with IRremote Lib on PlatformIO

Hello,

I wanted to update a code with the latest version of Irremote on my Teensy 4.1.
Unfortunately I always get the following error in the library:

Building in release mode
Compiling .pio\build\teensy41\src\Prototype_Version.cpp.o
Compiling .pio\build\teensy41\FrameworkArduino\HardwareSerial2.cpp.o
Compiling .pio\build\teensy41\FrameworkArduino\HardwareSerial3.cpp.o
Compiling .pio\build\teensy41\FrameworkArduino\HardwareSerial4.cpp.o
Compiling .pio\build\teensy41\FrameworkArduino\HardwareSerial5.cpp.o
Compiling .pio\build\teensy41\FrameworkArduino\HardwareSerial6.cpp.o
Compiling .pio\build\teensy41\FrameworkArduino\HardwareSerial7.cpp.o
Compiling .pio\build\teensy41\FrameworkArduino\HardwareSerial8.cpp.o
In file included from .pio\libdeps\teensy41\IRremote\src/IRremote.hpp:274:0,
from src\Prototype_Version.cpp:5:
.pio\libdeps\teensy41\IRremote\src/private/IRTimer.hpp: In function ‘void timerEnableReceiveInterrupt()’:
.pio\libdeps\teensy41\IRremote\src/private/IRTimer.hpp:1240:43: error: ‘pwm1_3_isr’ was not declared in this scope
attachInterruptVector(IRQ_FLEXPWM1_3, pwm1_3_isr);
^

Same error here. I can’t even find the definition for that ISR in either the core or the library.

Opened an issue

I might have solved the compile error correctly for it to actually work. Can you please set

lib_deps =
   https://github.com/maxgerhardt/Arduino-IRremote/archive/refs/heads/master.zip

and retry?

1 Like

The fix I proposed already made it into the main repo. Fixed error for Teensy 4.1 · Arduino-IRremote/Arduino-IRremote@dfdf835 · GitHub