mirror of
https://github.com/esphome/esphome.git
synced 2026-08-31 01:56:01 +00:00
Compile the gated lookup helpers into the ble_device_base test build
The contract test's own #define only covers its translation unit; ble_gatt_client.cpp needs the define from the build to link the find_characteristic/find_cccd definitions the lookup tests call.
This commit is contained in:
@@ -8,5 +8,8 @@ def override_manifest(manifest: ComponentManifestOverride) -> None:
|
||||
# no sensors, so emit the define here to put the real IRK path under test.
|
||||
async def to_code_testing(config):
|
||||
cg.add_define("USE_BLE_DEVICE_IRK")
|
||||
# The gatt contract test exercises the gated lookup helpers; compile
|
||||
# their definitions (ble_gatt_client.cpp) into the test build.
|
||||
cg.add_define("USE_BLE_GATT_CLIENT")
|
||||
|
||||
manifest.to_code = to_code_testing
|
||||
|
||||
Reference in New Issue
Block a user