You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
It seems there is an incompatibility with new esp8266-arduino release v2.5.1. The previous version 2.5.0 was fine. Even the simplest example (blink.ino) fails:
Looks like they (ESP) changed their definition from typedef uint8_t boolean;
to typedef bool boolean;
and we (FastLED) had a copy of the old definition in our header file, possibly from when we were working with the pre-2.0 versions of the ESP toolchain.
Simply commenting out line 15 from led_sysdefs_esp8266.h allows the compilation to succeed.
There could potentially be some extremely small and subtle semantic differences form this change, as has been discussed over in this related Arduino/esp issue esp8266/Arduino#5440 but I really don't think that we're going to run into any of those problems in real life, as we don't actually use boolean at all in any of our ESP code.
"Official" fix committed below; in the meantime if you need to you're welcome to do your own local work-around by opening arduino/libraries/FastLED/platforms/esp/8266/led_sysdefs_esp8266.h and deleting line 15, the one that says typedef uint8_t boolean;. Likewise, arduino/libraries/FastLED/platforms/esp/32/led_sysdefs_esp8266.h needed the same change for ESP32.
Tested that compilation succeeds with this change under all published ESP8266 toolchains from 2.0.0 through 2.5.1.
Activity
zeitwesen commentedon May 15, 2019
can also confirm the problem. compiling on 2.5.0 is fine, build breaking with 2.5.1
kriegsman commentedon May 15, 2019
Thank you for the reports. I'll try to take a look at this today.
kriegsman commentedon May 15, 2019
Looks like they (ESP) changed their definition from
typedef uint8_t boolean;to
typedef bool boolean;and we (FastLED) had a copy of the old definition in our header file, possibly from when we were working with the pre-2.0 versions of the ESP toolchain.
Simply commenting out line 15 from led_sysdefs_esp8266.h allows the compilation to succeed.
There could potentially be some extremely small and subtle semantic differences form this change, as has been discussed over in this related Arduino/esp issue esp8266/Arduino#5440 but I really don't think that we're going to run into any of those problems in real life, as we don't actually use
booleanat all in any of our ESP code."Official" fix committed below; in the meantime if you need to you're welcome to do your own local work-around by opening
arduino/libraries/FastLED/platforms/esp/8266/led_sysdefs_esp8266.hand deleting line 15, the one that saystypedef uint8_t boolean;. Likewise,arduino/libraries/FastLED/platforms/esp/32/led_sysdefs_esp8266.hneeded the same change for ESP32.Tested that compilation succeeds with this change under all published ESP8266 toolchains from 2.0.0 through 2.5.1.
kriegsman commentedon May 15, 2019
cc'ing @samguyer as a heads-up, just in case.
samguyer commentedon May 15, 2019
Thanks @kriegsman. There have been a few of these weird collisions with ESP32 definitions.
zeitwesen commentedon May 15, 2019
Thanks @kriegsman. I can confirm it is working with your fix. Nice work!
Removed conflicting (and unneeded) typedef of 'boolean', fixes FastLE…
Removed conflicting (and unneeded) typedef of 'boolean', fixes FastLE…
Removed conflicting (and unneeded) typedef of 'boolean', fixes FastLE…
Removed conflicting (and unneeded) typedef of 'boolean', fixes FastLE…