Skip to content

Commit 9561231

Browse files
kkasperczyk-norlubos
authored andcommitted
applications: Fixed warning in the matter bridge code
Removed unused variables that lead to cpp warning and twister build failure. Signed-off-by: Kamil Kasperczyk <[email protected]>
1 parent 8aa1591 commit 9561231

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

applications/matter_bridge/src/ble_providers/ble_bridged_device_factory.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,8 @@ CHIP_ERROR BluetoothDeviceConnected(bool success, void *context)
221221
return CHIP_ERROR_INTERNAL;
222222
}
223223

224-
/* Discovery was successful, try to bridge connected BLE device with the Matter counterpart. */
225-
chip::Optional<uint8_t> indexes[BridgeManager::kMaxBridgedDevicesPerProvider];
226-
chip::Optional<uint16_t> endpointIds[BridgeManager::kMaxBridgedDevicesPerProvider];
227-
/* AddMatterDevices takes the ownership of the passed provider object and will
224+
/* Discovery was successful, try to bridge connected BLE device with the Matter counterpart.
225+
AddMatterDevices takes the ownership of the passed provider object and will
228226
delete it in case the BridgeManager fails to accept this object. */
229227
CHIP_ERROR err = AddMatterDevices(ctx->deviceTypes, ctx->count, ctx->uniqueID, ctx->nodeLabel, ctx->provider);
230228
chip::Platform::Delete(ctx);

0 commit comments

Comments
 (0)