Set PlatformIO's lib_ldf_mode to chain+ to prevent it from including ESP32 libraries in ESP8266 projects and vice versa.
This commit is contained in:
parent
5ce3b0c1b3
commit
60aacb0531
@ -11,6 +11,7 @@
|
|||||||
[platformio]
|
[platformio]
|
||||||
lib_dir = lib
|
lib_dir = lib
|
||||||
env_default = ota
|
env_default = ota
|
||||||
|
lib_ldf_mode = chain+
|
||||||
|
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
@ -28,6 +29,7 @@ platform = espressif8266
|
|||||||
board = esp07
|
board = esp07
|
||||||
framework = arduino
|
framework = arduino
|
||||||
lib_deps = ${extra.lib_deps}
|
lib_deps = ${extra.lib_deps}
|
||||||
|
lib_ldf_mode = chain+
|
||||||
|
|
||||||
[env:local]
|
[env:local]
|
||||||
upload_port = /dev/cu.wchusbserial1420
|
upload_port = /dev/cu.wchusbserial1420
|
||||||
@ -35,6 +37,7 @@ platform = espressif8266
|
|||||||
board = esp07
|
board = esp07
|
||||||
framework = arduino
|
framework = arduino
|
||||||
lib_deps = ${extra.lib_deps}
|
lib_deps = ${extra.lib_deps}
|
||||||
|
lib_ldf_mode = chain+
|
||||||
|
|
||||||
[env:esp32]
|
[env:esp32]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
@ -43,4 +46,5 @@ framework = arduino
|
|||||||
lib_deps =
|
lib_deps =
|
||||||
${extra.lib_deps}
|
${extra.lib_deps}
|
||||||
ESP32WebServer
|
ESP32WebServer
|
||||||
WiFiClient
|
FS
|
||||||
|
lib_ldf_mode = chain+
|
||||||
|
Loading…
Reference in New Issue
Block a user