tobozo / M5Stack-SD-Updater

💾 Customizable menu system for M5Stack, M5Unified and ESP32-Chimera-Core - loads apps from the Micro SD card. Easily add you own apps
MIT License
309 stars 41 forks source link

error compiling #156

Closed fermintm closed 2 years ago

fermintm commented 2 years ago

Hi! Arduino IDE 1.8.15 and esp32 v1.0.6 or 2.0.0 version same error.

M5StackUpdater.h:152:88: error: missing binary operator before token "("

if defined ESP_ARDUINO_VERSION && ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2,0,0)

tobozo commented 2 years ago

hey @fermintm thanks for reporting that :+1:

I've pushed an update to cover that compilation error and will produce a release soon.

Meanwhile it can be fixed by manually replacing the offending macro with this:

#if defined ESP_IDF_VERSION_MAJOR && ESP_IDF_VERSION_MAJOR >= 4

... or by updating ESP32 package to version 2.0, where this new macro was introduced.

tobozo commented 2 years ago

closing this as fixed in latest release (v1.1.2)

feel free to reopen if you still get a compilation error

thanks again for reporting :+1: