diff --git a/platformio.ini b/platformio.ini index 1a40b795..57a4b192 100644 --- a/platformio.ini +++ b/platformio.ini @@ -16,7 +16,7 @@ lib_deps_external = RF24 WiFiManager ArduinoJson -build_flags = -D MILIGHT_HUB_VERSION=\"1.1.0\" +build_flags = !echo -D MILIGHT_HUB_VERSION=\\\"$(git describe --always)\\\" # -D MILIGHT_UDP_DEBUG [env:nodemcuv2] @@ -26,7 +26,7 @@ board = nodemcuv2 lib_deps = ${common.lib_deps_builtin} ${common.lib_deps_external} -build_flags = ${common.build_flags} -D FIRMWARE_VARIANT=\"nodemcuv2\" +build_flags = ${common.build_flags} -D FIRMWARE_VARIANT=\\\"nodemcuv2\\\" [env:d1_mini] platform = espressif8266 @@ -35,13 +35,13 @@ board = d1_mini lib_deps = ${common.lib_deps_builtin} ${common.lib_deps_external} -build_flags = ${common.build_flags} -D FIRMWARE_VARIANT=\"d1_mini\" +build_flags = ${common.build_flags} -D FIRMWARE_VARIANT=\\\"d1_mini\\\" [env:esp12] platform = espressif8266 board = esp12e framework = arduino -build_flags = ${common.build_flags} -Wl,-Tesp8266.flash.4m1m.ld -D FIRMWARE_VARIANT=\"esp12\" +build_flags = ${common.build_flags} -Wl,-Tesp8266.flash.4m1m.ld -D FIRMWARE_VARIANT=\\\"esp12\\\" lib_deps = ${common.lib_deps_builtin} ${common.lib_deps_external} @@ -50,7 +50,7 @@ lib_deps = platform = espressif8266 board = esp07 framework = arduino -build_flags = ${common.build_flags} -Wl,-Tesp8266.flash.1m64.ld -D FIRMWARE_VARIANT=\"esp07\" +build_flags = ${common.build_flags} -Wl,-Tesp8266.flash.1m64.ld -D FIRMWARE_VARIANT=\\\"esp07\\\" lib_deps = ${common.lib_deps_builtin} ${common.lib_deps_external}