Usermod BH1750 won't compile for ESP8266 (V0.14.2) #3878
Labels
bug
fixed in source
This issue is unsolved in the latest release but fixed in master
workaround
The issue contains a workaround
What happened?
When trying to custom compile WLED (V0.14.2) for an ESP8266 (Lolin D1 Mini board) with the BH1750 Usermod enabled, WLED will not compile, and i'm presented with error: statement-expressions are not allowed outside functions nor in template-argument lists
I've followed the usermod readme and ensured all dependencies are included (see below).
I have tried this again with a fresh installation of Visual Studio, Platform.io & a fresh copy of WLED 0.14.2 from Github, but the problem persists.
If I try to compile this usermod for an ESP32 board, it builds successfully, so this seems to be limited to ESP8266 boards only, and I can't figure out why.
To Reproduce Bug
Compile via Visual Studio, modifying the platformio.ini file to uncomment:
and add the following build flags and library dependencies (as per the readme)
Expected Behavior
When compiling for an ESP32 board, I can compile successfully, so I would expect this to work for an ESP8266 board (and this is also listed in the example for Usermod BH1750
Install Method
Self-Compiled
What version of WLED?
WLED 0.14.2 & 0.14.1
Which microcontroller/board are you seeing the problem on?
ESP8266
Relevant log/trace output
Anything else?
I have searched the forums and discord, and I've only found one other person who has mentioned a similar issue, but with no resolution.
Code of Conduct
The text was updated successfully, but these errors were encountered: