From 551a479c6b6d47ac9db3fdb39c52f468dbcb8946 Mon Sep 17 00:00:00 2001 From: Proddy Date: Thu, 19 Aug 2021 20:12:43 +0200 Subject: [PATCH] fix custom build options --- pio_local.ini_example | 23 +++++++++++++---------- platformio.ini | 4 ++++ 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/pio_local.ini_example b/pio_local.ini_example index cd31cc22e..6ca3c0b16 100644 --- a/pio_local.ini_example +++ b/pio_local.ini_example @@ -1,19 +1,22 @@ ; example custom platformio.ini file for EMS-ESP [common] -; e.g. use build_flags = -DEMSESP_DEFAULT_BOARD_PROFILE=\"NODEMCU\" -debug_flags = -DEMSESP_WIFI_TWEAK -DEMSESP_DEBUG -; debug_flags = +; custom build flags +; EMSESP_DEBUG, EMSESP_UART_DEBUG, EMSESP_DEBUG_SENSOR, EMSESP_WIFI_TWEAK, EMSESP_DEFAULT_BOARD_PROFILE +; ; e.g. -DEMSESP_DEFAULT_BOARD_PROFILE=\"NODEMCU\" +; my_build_flags = -DEMSESP_DEBUG -DEMSESP_DEFAULT_BOARD_PROFILE=\"NODEMCU\" +my_build_flags = [env:esp32] ; if using OTA enter your details below -upload_protocol = espota -upload_flags = - --port=8266 - --auth=ems-esp-neo -upload_port = 10.10.10.101 -; to prevent the web UI from building each time, uncomment this next line -; extra_scripts = +; upload_protocol = espota +; upload_flags = +; --port=8266 +; --auth=ems-esp-neo +; upload_port = 10.10.10.101 + +; to prevent the web UI from building each time, comment out this next line +extra_scripts = ; pio run -e debug ; or from Visual Studio Code do PIO -> Project Tasks -> debug -> General -> Upload and Monitor diff --git a/platformio.ini b/platformio.ini index 88ac17869..002bf0dfa 100644 --- a/platformio.ini +++ b/platformio.ini @@ -18,9 +18,13 @@ core_build_flags = core_unbuild_flags = +; my_build_flags is set in pio_local.ini +my_build_flags = + build_flags = ${common.core_build_flags} ${factory_settings.build_flags} + ${common.my_build_flags} -D ONEWIRE_CRC16=0 -D NO_GLOBAL_ARDUINOOTA -D ARDUINOJSON_ENABLE_STD_STRING=1