mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 09:19:51 +03:00
fix custom build options
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user