File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,18 @@ def is_pio_build():
81
81
82
82
# pico support library depends on ipv6 enable/disable
83
83
libpico = File (os .path .join (FRAMEWORK_DIR , "lib" , "libpico.a" ))
84
- if "PIO_FRAMEWORK_ARDUINO_ENABLE_IPV6" in flatten_cppdefines :
84
+ if "PIO_FRAMEWORK_ARDUINO_ENABLE_BLUETOOTH" in flatten_cppdefines :
85
+ if "PIO_FRAMEWORK_ARDUINO_ENABLE_IPV6" in flatten_cppdefines :
86
+ libpicow = File (os .path .join (FRAMEWORK_DIR , "lib" , "libpicow-ipv6-btc-ble.a" ))
87
+ else :
88
+ libpicow = File (os .path .join (FRAMEWORK_DIR , "lib" , "libpicow-noipv6-btc-ble.a" ))
89
+ env .Append (
90
+ CPPDEFINES = [
91
+ ("ENABLE_CLASSIC" , 1 ),
92
+ ("ENABLE_BLE" , 1 )
93
+ ]
94
+ )
95
+ elif "PIO_FRAMEWORK_ARDUINO_ENABLE_IPV6" in flatten_cppdefines :
85
96
libpicow = File (os .path .join (FRAMEWORK_DIR , "lib" , "libpicow-ipv6-nobtc-noble.a" ))
86
97
else :
87
98
libpicow = File (os .path .join (FRAMEWORK_DIR , "lib" , "libpicow-noipv6-nobtc-noble.a" ))
You can’t perform that action at this time.
0 commit comments