fix custom build options

This commit is contained in:
Proddy
2021-08-19 20:12:43 +02:00
parent 3f85541c9a
commit 551a479c6b
2 changed files with 17 additions and 10 deletions

View File

@@ -1,19 +1,22 @@
; example custom platformio.ini file for EMS-ESP ; example custom platformio.ini file for EMS-ESP
[common] [common]
; e.g. use build_flags = -DEMSESP_DEFAULT_BOARD_PROFILE=\"NODEMCU\" ; custom build flags
debug_flags = -DEMSESP_WIFI_TWEAK -DEMSESP_DEBUG ; EMSESP_DEBUG, EMSESP_UART_DEBUG, EMSESP_DEBUG_SENSOR, EMSESP_WIFI_TWEAK, EMSESP_DEFAULT_BOARD_PROFILE
; debug_flags = ; ; e.g. -DEMSESP_DEFAULT_BOARD_PROFILE=\"NODEMCU\"
; my_build_flags = -DEMSESP_DEBUG -DEMSESP_DEFAULT_BOARD_PROFILE=\"NODEMCU\"
my_build_flags =
[env:esp32] [env:esp32]
; if using OTA enter your details below ; if using OTA enter your details below
upload_protocol = espota ; upload_protocol = espota
upload_flags = ; upload_flags =
--port=8266 ; --port=8266
--auth=ems-esp-neo ; --auth=ems-esp-neo
upload_port = 10.10.10.101 ; upload_port = 10.10.10.101
; to prevent the web UI from building each time, uncomment this next line
; extra_scripts = ; to prevent the web UI from building each time, comment out this next line
extra_scripts =
; pio run -e debug ; pio run -e debug
; or from Visual Studio Code do PIO -> Project Tasks -> debug -> General -> Upload and Monitor ; or from Visual Studio Code do PIO -> Project Tasks -> debug -> General -> Upload and Monitor

View File

@@ -18,9 +18,13 @@ core_build_flags =
core_unbuild_flags = core_unbuild_flags =
; my_build_flags is set in pio_local.ini
my_build_flags =
build_flags = build_flags =
${common.core_build_flags} ${common.core_build_flags}
${factory_settings.build_flags} ${factory_settings.build_flags}
${common.my_build_flags}
-D ONEWIRE_CRC16=0 -D ONEWIRE_CRC16=0
-D NO_GLOBAL_ARDUINOOTA -D NO_GLOBAL_ARDUINOOTA
-D ARDUINOJSON_ENABLE_STD_STRING=1 -D ARDUINOJSON_ENABLE_STD_STRING=1