Skip to content

Commit dc75ac5

Browse files
committed
Enfore RPC enabling for synchronized device addition
1 parent f2841eb commit dc75ac5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/fabric-admin/commands/pairing/DeviceSynchronization.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ void DeviceSynchronizer::OnAttributeData(const ConcreteDataAttributePath & path,
119119
void DeviceSynchronizer::OnReportEnd()
120120
{
121121
// Report end is at the end of all attributes (success)
122+
#if defined(PW_RPC_ENABLED)
122123
AddSynchronizedDevice(mCurrentDeviceData);
124+
#else
125+
ChipLogError(NotSpecified, "Cannot synchronize device with fabric bridge: RPC not enabled");
126+
#endif
123127
}
124128

125129
void DeviceSynchronizer::OnDone(chip::app::ReadClient * apReadClient)

0 commit comments

Comments
 (0)