Skip to content

Commit b222f45

Browse files
committed
A few more casting file updates for bindings
1 parent dbdac79 commit b222f45

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/tv-casting-app/linux/simple-app-helper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ void PrintBindings()
294294
"Binding type=%d fab=%d nodeId=0x" ChipLogFormatX64
295295
" groupId=%d local endpoint=%d remote endpoint=%d cluster=" ChipLogFormatMEI,
296296
binding.type, binding.fabricIndex, ChipLogValueX64(binding.nodeId), binding.groupId, binding.local,
297-
binding.remote, ChipLogValueMEI(binding.clusterId.ValueOr(0)));
297+
binding.remote, ChipLogValueMEI(binding.clusterId.value_or(0)));
298298
}
299299
}
300300

examples/tv-casting-app/tv-casting-common/support/ChipDeviceEventHandler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ void ChipDeviceEventHandler::HandleBindingsChangedViaCluster(const chip::DeviceL
155155
"nodeId=0x" ChipLogFormatX64
156156
" groupId=%d local endpoint=%d remote endpoint=%d cluster=" ChipLogFormatMEI,
157157
binding.type, binding.fabricIndex, ChipLogValueX64(binding.nodeId), binding.groupId, binding.local,
158-
binding.remote, ChipLogValueMEI(binding.clusterId.ValueOr(0)));
158+
binding.remote, ChipLogValueMEI(binding.clusterId.value_or(0)));
159159
if (binding.type == MATTER_UNICAST_BINDING && event->BindingsChanged.fabricIndex == binding.fabricIndex)
160160
{
161161
ChipLogProgress(AppServer,

examples/tv-casting-app/tv-casting-common/support/EndpointListLoader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ CHIP_ERROR EndpointListLoader::Load()
8686
"Binding type=%d fab=%d nodeId=0x" ChipLogFormatX64
8787
" groupId=%d local endpoint=%d remote endpoint=%d cluster=" ChipLogFormatMEI,
8888
binding.type, binding.fabricIndex, ChipLogValueX64(binding.nodeId), binding.groupId, binding.local,
89-
binding.remote, ChipLogValueMEI(binding.clusterId.ValueOr(0)));
89+
binding.remote, ChipLogValueMEI(binding.clusterId.value_or(0)));
9090
if (binding.type == MATTER_UNICAST_BINDING && CastingPlayer::GetTargetCastingPlayer()->GetNodeId() == binding.nodeId)
9191
{
9292
// if we discovered a new Endpoint from the bindings, read its EndpointAttributes

0 commit comments

Comments
 (0)