This prevents -DARDUINO_ESP32_DEV from clobbering the checks for other boards. This is especially a problem when building with PlatformIO and using the esp32dev board definition, which sets -DARDUINO_ESP32_DEV, necessitating the use of build_unflags in platformio.ini.
This bug causes issues for me when building for my Inkplate 6plus with PlatformIO. The following platformio.ini causes the build to fail.
To get it to work, I need to add -DARDUINO_ESP32_DEV to build_unflags. Since I'm not sure if that will have other unintended consequences, it seemed safer to fix the order of the checks in the Inkplate library itself.
This prevents
-DARDUINO_ESP32_DEV
from clobbering the checks for other boards. This is especially a problem when building with PlatformIO and using the esp32dev board definition, which sets-DARDUINO_ESP32_DEV
, necessitating the use ofbuild_unflags
in platformio.ini.This bug causes issues for me when building for my Inkplate 6plus with PlatformIO. The following platformio.ini causes the build to fail.
To get it to work, I need to add
-DARDUINO_ESP32_DEV
tobuild_unflags
. Since I'm not sure if that will have other unintended consequences, it seemed safer to fix the order of the checks in the Inkplate library itself.