move USE_TELNET & USE_SERIAL to global env section

This commit is contained in:
Yurii
2023-11-27 14:37:24 +03:00
parent df99aae812
commit 02d2f0f524

View File

@@ -23,7 +23,11 @@ lib_deps =
laxilef/TinyLogger@^1.0.4
https://github.com/Laxilef/WiFiManager/archive/refs/heads/patch-1.zip
;https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2
build_flags = -D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH -mtext-section-literals
build_flags =
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
-mtext-section-literals
-D USE_SERIAL=0
-D USE_TELNET=1
upload_speed = 921600
monitor_speed = 115200
version = 1.3.4
@@ -48,7 +52,9 @@ lib_ignore =
extra_scripts =
post:tools/esp32.py
post:tools/build.py
build_flags = ${env.build_flags}
build_flags =
${env.build_flags}
-D CORE_DEBUG_LEVEL=0
; Boards
@@ -66,8 +72,6 @@ build_flags =
-D SENSOR_INDOOR_PIN_DEFAULT=14
-D LED_STATUS_PIN=13
-D LED_OT_RX_PIN=15
-D USE_SERIAL=0
-D USE_TELNET=1
[env:d1_mini_lite]
platform = ${esp8266_defaults.platform}
@@ -83,8 +87,6 @@ build_flags =
-D SENSOR_INDOOR_PIN_DEFAULT=14
-D LED_STATUS_PIN=13
-D LED_OT_RX_PIN=15
-D USE_SERIAL=0
-D USE_TELNET=1
[env:d1_mini_pro]
platform = ${esp8266_defaults.platform}
@@ -100,8 +102,6 @@ build_flags =
-D SENSOR_INDOOR_PIN_DEFAULT=14
-D LED_STATUS_PIN=13
-D LED_OT_RX_PIN=15
-D USE_SERIAL=0
-D USE_TELNET=1
[env:s2_mini]
platform = ${esp32_defaults.platform}
@@ -117,8 +117,6 @@ build_flags =
-D SENSOR_INDOOR_PIN_DEFAULT=7
-D LED_STATUS_PIN=11
-D LED_OT_RX_PIN=12
-D USE_SERIAL=0
-D USE_TELNET=1
[env:s3_mini]
platform = ${esp32_defaults.platform}
@@ -134,8 +132,6 @@ build_flags =
-D SENSOR_INDOOR_PIN_DEFAULT=12
-D LED_STATUS_PIN=11
-D LED_OT_RX_PIN=10
-D USE_SERIAL=0
-D USE_TELNET=1
[env:c3_mini]
platform = ${esp32_defaults.platform}
@@ -151,8 +147,6 @@ build_flags =
-D SENSOR_INDOOR_PIN_DEFAULT=1
-D LED_STATUS_PIN=4
-D LED_OT_RX_PIN=5
-D USE_SERIAL=0
-D USE_TELNET=1
[env:nodemcu_32s]
platform = ${esp32_defaults.platform}
@@ -168,10 +162,7 @@ build_flags =
-D SENSOR_INDOOR_PIN_DEFAULT=13
-D LED_STATUS_PIN=2 ; 18
-D LED_OT_RX_PIN=19
-D USE_SERIAL=0
-D USE_TELNET=1
;-D WOKWI=1
;-D USE_TELNET=0
;-D DEBUG_BY_DEFAULT=1
;-D WM_DEBUG_MODE=3
@@ -189,5 +180,3 @@ build_flags =
-D SENSOR_INDOOR_PIN_DEFAULT=18
-D LED_STATUS_PIN=2
-D LED_OT_RX_PIN=19
-D USE_SERIAL=0
-D USE_TELNET=1