jgromes / RadioLib

Universal wireless communication library for embedded devices
https://jgromes.github.io/RadioLib/
MIT License
1.46k stars 367 forks source link

error: missing binary operator before token "(" #if !defined(ESP_IDF_VERSION) || (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5,0,0)) #1157

Closed MissingDirection closed 3 weeks ago

MissingDirection commented 1 month ago

IMPORTANT: Before submitting an issue, please check the following:

  1. Read CONTRIBUTING.md! Issues that do not follow this document will be closed/locked/deleted/ignored.
  2. RadioLib has a Troubleshooting Guide Wiki page and an extensive API documentation. You might find a solution to your issue there.
  3. Make sure you're using the latest release of the library! Releases can be found here.
  4. Use Arduino forums to ask generic questions about wireless modules, wiring, usage, etc. Only create issues for problems specific to RadioLib!
  5. Error codes, their meaning and how to fix them can be found on this page.

Sketch that is causing the module fail

paste the sketch here, even if it is an unmodified example code

Hardware setup Wiring diagram, schematic, pictures etc.

Debug mode output c:\Users\33119\Documents\Arduino\libraries\RadioLib\src\ArduinoHal.cpp:127:78: error: missing binary operator before token "("

if !defined(ESP_IDF_VERSION) || (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5,0,0))

                                                                          ^

c:\Users\33119\Documents\Arduino\libraries\RadioLib\src\ArduinoHal.cpp:132:78: error: missing binary operator before token "("

if !defined(ESP_IDF_VERSION) || (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5,0,0))

                                                                          ^

c:\Users\33119\Documents\Arduino\libraries\RadioLib\src\ArduinoHal.cpp:170:76: error: missing binary operator before token "("

if !defined(ESP_IDF_VERSION) || (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5,0,0))

                                                                        ^

c:\Users\33119\Documents\Arduino\libraries\RadioLib\src\ArduinoHal.cpp: In member function 'virtual void ArduinoHal::noTone(uint32_t)': c:\Users\33119\Documents\Arduino\libraries\RadioLib\src\ArduinoHal.cpp:174:19: error: 'ledcDetach' was not declared in this scope ledcDetach(pin)

Additional info (please complete):

jgromes commented 1 month ago

Which version of the ESP32 Arduino core are you using? Most likely something rather outdated, since it doesn't seem to contain the ESP_IDF macros RadioLib uses to determine ESP-IDF version.

jgromes commented 3 weeks ago

Closed due to inactivity.