Skip to content

Commit 7781b6b

Browse files
committed
Minor code updates
1 parent 35b579a commit 7781b6b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

examples/tv-app/tv-common/src/AppTv.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,8 @@ void ContentAppFactoryImpl::AddAdminVendorId(uint16_t vendorId)
567567
mAdminVendorIds.push_back(vendorId);
568568
}
569569

570+
571+
570572
class DevicePairedCommand : public Controller::DevicePairingDelegate
571573
{
572574
public:
@@ -597,8 +599,12 @@ class DevicePairedCommand : public Controller::DevicePairingDelegate
597599
" and vendor id: %d and product id: %d",
598600
ChipLogValueX64(cbContext->nodeId), cbContext->vendorId, cbContext->productId);
599601

602+
#if CHIP_DEVICE_CONFIG_APP_PLATFORM_ENABLED
603+
600604
GetCommissionerDiscoveryController()->CommissioningSucceeded(cbContext->vendorId, cbContext->productId,
601605
cbContext->nodeId, exchangeMgr, sessionHandle);
606+
607+
#endif // CHIP_DEVICE_CONFIG_APP_PLATFORM_ENABLED
602608
}
603609
}
604610

@@ -686,7 +692,7 @@ void ContentAppFactoryImpl::InstallContentApp(uint16_t vendorId, uint16_t produc
686692
nodeIds.insert(tempNodeIds.begin(), tempNodeIds.end());
687693
}
688694
}
689-
695+
#if CHIP_DEVICE_CONFIG_APP_PLATFORM_ENABLED
690696
// refresh ACLs
691697
for (const auto & nodeId : nodeIds)
692698
{
@@ -700,6 +706,7 @@ void ContentAppFactoryImpl::InstallContentApp(uint16_t vendorId, uint16_t produc
700706
GetDeviceCommissioner()->GetConnectedDevice(nodeId, &pairingCommand->mOnDeviceConnectedCallback,
701707
&pairingCommand->mOnDeviceConnectionFailureCallback);
702708
}
709+
#endif // CHIP_DEVICE_CONFIG_APP_PLATFORM_ENABLED
703710
}
704711

705712
bool ContentAppFactoryImpl::UninstallContentApp(uint16_t vendorId, uint16_t productId)

0 commit comments

Comments
 (0)