LilyGo-LoRa-Series icon indicating copy to clipboard operation
LilyGo-LoRa-Series copied to clipboard

TTGO Lora32-OLED SX1276_Receive_Interrupt.ino compile error

Open KenSamson opened this issue 5 months ago • 4 comments

It looks like the examples and the ESP32 libraries no longer match for interrupt definitions:

(Do the examples need to be updated or do I need to somehow change my setup?

This also happens to me for the T3S3 Factory example... I have multiple boards...

C:\Users\ka0pi\Dev\LillyGo\Archive\LilyGo-LoRa-Series-0.0.1\examples\RadioLibExamples\SX1276\SX1276_Receive_Interrupt\SX1276_Receive_Interrupt.ino:33:15: error: 'volatile bool enableInterrupt' redeclared as different kind of entity 33 | volatile bool enableInterrupt = true; | ^~~~~~~~~~~~~~~ In file included from C:\Users\ka0pi\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/esp32-hal.h:75, from C:\Users\ka0pi\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/Arduino.h:36, from C:\Users\ka0pi\AppData\Local\Temp\arduino\sketches\305E07736F1FABB5A3679BC7DE6BA2E2\sketch\SX1276_Receive_Interrupt.ino.cpp:1: C:\Users\ka0pi\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/esp32-hal-gpio.h:81:6: note: previous declaration 'void enableInterrupt(uint8_t)' 81 | void enableInterrupt(uint8_t pin); | ^~~~~~~~~~~~~~~ C:\Users\ka0pi\Dev\LillyGo\Archive\LilyGo-LoRa-Series-0.0.1\examples\RadioLibExamples\SX1276\SX1276_Receive_Interrupt\SX1276_Receive_Interrupt.ino: In function 'void loop()': C:\Users\ka0pi\Dev\LillyGo\Archive\LilyGo-LoRa-Series-0.0.1\examples\RadioLibExamples\SX1276\SX1276_Receive_Interrupt\SX1276_Receive_Interrupt.ino:128:25: error: assignment of function 'void enableInterrupt(uint8_t)' 128 | enableInterrupt = false; | ~~~~~~~~~~~~~~~~^~~~~~~ C:\Users\ka0pi\Dev\LillyGo\Archive\LilyGo-LoRa-Series-0.0.1\examples\RadioLibExamples\SX1276\SX1276_Receive_Interrupt\SX1276_Receive_Interrupt.ino:214:25: error: assignment of function 'void enableInterrupt(uint8_t)' 214 | enableInterrupt = true; | ~~~~~~~~~~~~~~~~^~~~~~

exit status 1

Compilation error: 'volatile bool enableInterrupt' redeclared as different kind of entity

KenSamson avatar Sep 01 '24 23:09 KenSamson