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:
Fabian Schlenz 2019-06-14 05:36:04 +02:00
parent 5ce3b0c1b3
commit 60aacb0531

View File

@ -11,6 +11,7 @@
[platformio]
lib_dir = lib
env_default = ota
lib_ldf_mode = chain+
[extra]
@ -28,6 +29,7 @@ platform = espressif8266
board = esp07
framework = arduino
lib_deps = ${extra.lib_deps}
lib_ldf_mode = chain+
[env:local]
upload_port = /dev/cu.wchusbserial1420
@ -35,6 +37,7 @@ platform = espressif8266
board = esp07
framework = arduino
lib_deps = ${extra.lib_deps}
lib_ldf_mode = chain+
[env:esp32]
platform = espressif32
@ -43,4 +46,5 @@ framework = arduino
lib_deps =
${extra.lib_deps}
ESP32WebServer
WiFiClient
FS
lib_ldf_mode = chain+