Fix nodemcuv2 PRINTF_TO for espressif8266 v3.0.0

Add -D _GNU_SOURCE to [env:nodemcuv2] in platformio.ini.
Espressif8266 platform v3.0.0 now also requires this,
otherwise LMIC_PRINTF_TO will fail to compile.
This commit is contained in:
Leonel Lopes Parente 2021-06-03 12:09:07 +02:00
parent 7b50326413
commit b4142760a5

View file

@ -741,6 +741,7 @@ build_flags =
${mcci_lmic.build_flags}
-D BSFILE=\"boards/bsf_nodemcuv2.h\"
-D MONITOR_SPEED=${env:nodemcuv2.monitor_speed}
-D _GNU_SOURCE
-D LMIC_PRINTF_TO=Serial
-D USE_SERIAL
-D USE_LED