From b4142760a52c5a53a17367a2c9376aefd3947f98 Mon Sep 17 00:00:00 2001 From: Leonel Lopes Parente Date: Thu, 3 Jun 2021 12:09:07 +0200 Subject: [PATCH] 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. --- platformio.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index 58562cf..7696658 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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 @@ -779,8 +780,8 @@ build_flags = ${mcci_lmic.build_flags} -D BSFILE=\"boards/bsf_pico.h\" -D MONITOR_SPEED=${common.monitor_speed} - -D _GNU_SOURCE - -D LMIC_PRINTF_TO=SerialUSB + -D _GNU_SOURCE + -D LMIC_PRINTF_TO=SerialUSB -D USE_SERIAL -D USE_LED ; -D USE_DISPLAY ; Requires external I2C OLED display