Skip to content

Commit e8ea369

Browse files
committed
Fix castingserver.cpp
1 parent d765312 commit e8ea369

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/tv-casting-app/tv-casting-common/src/CastingServer.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ void CastingServer::ReadServerClustersForNode(NodeId nodeId)
312312
"Binding type=%d fab=%d nodeId=0x" ChipLogFormatX64
313313
" groupId=%d local endpoint=%d remote endpoint=%d cluster=" ChipLogFormatMEI,
314314
binding.type, binding.fabricIndex, ChipLogValueX64(binding.nodeId), binding.groupId, binding.local,
315-
binding.remote, ChipLogValueMEI(binding.clusterId.ValueOr(0)));
315+
binding.remote, ChipLogValueMEI(binding.clusterId.value_or(0)));
316316
if (binding.type == MATTER_UNICAST_BINDING && nodeId == binding.nodeId)
317317
{
318318
if (!mActiveTargetVideoPlayerInfo.HasEndpoint(binding.remote))
@@ -584,7 +584,7 @@ void CastingServer::DeviceEventCallback(const DeviceLayer::ChipDeviceEvent * eve
584584
"CastingServer::DeviceEventCallback Read cached binding type=%d fabrixIndex=%d nodeId=0x" ChipLogFormatX64
585585
" groupId=%d local endpoint=%d remote endpoint=%d cluster=" ChipLogFormatMEI,
586586
binding.type, binding.fabricIndex, ChipLogValueX64(binding.nodeId), binding.groupId, binding.local,
587-
binding.remote, ChipLogValueMEI(binding.clusterId.ValueOr(0)));
587+
binding.remote, ChipLogValueMEI(binding.clusterId.value_or(0)));
588588
if (binding.type == MATTER_UNICAST_BINDING && event->BindingsChanged.fabricIndex == binding.fabricIndex)
589589
{
590590
ChipLogProgress(
@@ -675,7 +675,7 @@ NodeId CastingServer::GetVideoPlayerNodeForFabricIndex(FabricIndex fabricIndex)
675675
"Binding type=%d fab=%d nodeId=0x" ChipLogFormatX64
676676
" groupId=%d local endpoint=%d remote endpoint=%d cluster=" ChipLogFormatMEI,
677677
binding.type, binding.fabricIndex, ChipLogValueX64(binding.nodeId), binding.groupId, binding.local,
678-
binding.remote, ChipLogValueMEI(binding.clusterId.ValueOr(0)));
678+
binding.remote, ChipLogValueMEI(binding.clusterId.value_or(0)));
679679
if (binding.type == MATTER_UNICAST_BINDING && fabricIndex == binding.fabricIndex)
680680
{
681681
ChipLogProgress(NotSpecified, "GetVideoPlayerNodeForFabricIndex nodeId=0x" ChipLogFormatX64,
@@ -701,7 +701,7 @@ FabricIndex CastingServer::GetVideoPlayerFabricIndexForNode(NodeId nodeId)
701701
"Binding type=%d fab=%d nodeId=0x" ChipLogFormatX64
702702
" groupId=%d local endpoint=%d remote endpoint=%d cluster=" ChipLogFormatMEI,
703703
binding.type, binding.fabricIndex, ChipLogValueX64(binding.nodeId), binding.groupId, binding.local,
704-
binding.remote, ChipLogValueMEI(binding.clusterId.ValueOr(0)));
704+
binding.remote, ChipLogValueMEI(binding.clusterId.value_or(0)));
705705
if (binding.type == MATTER_UNICAST_BINDING && nodeId == binding.nodeId)
706706
{
707707
ChipLogProgress(NotSpecified, "GetVideoPlayerFabricIndexForNode fabricIndex=%d nodeId=0x" ChipLogFormatX64,

0 commit comments

Comments
 (0)