Skip to content

Commit 32f36b3

Browse files
yufengwangcaaustina-csa
authored andcommitted
Suppress warning when RPC is disabled (project-chip#34199)
1 parent 71bbbf4 commit 32f36b3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

examples/fabric-admin/commands/interactive/InteractiveCommands.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ namespace {
4040
constexpr char kInteractiveModePrompt[] = ">>> ";
4141
constexpr char kInteractiveModeHistoryFileName[] = "chip_tool_history";
4242
constexpr char kInteractiveModeStopCommand[] = "quit()";
43-
constexpr uint16_t kRetryIntervalS = 5;
43+
44+
#if defined(PW_RPC_ENABLED)
45+
constexpr uint16_t kRetryIntervalS = 5;
46+
#endif
4447

4548
// File pointer for the log file
4649
FILE * sLogFile = nullptr;

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,9 @@ void PairingCommand::OnCurrentFabricRemove(void * context, NodeId nodeId, CHIP_E
543543
// print to console
544544
fprintf(stderr, "Device with Node ID: 0x%lx has been successfully removed.\n", nodeId);
545545

546-
// TODO: (#33973) Add RPC method RemoveSynchronizedDevice
546+
#if defined(PW_RPC_ENABLED)
547+
RemoveSynchronizedDevice(nodeId);
548+
#endif
547549
}
548550
else
549551
{

0 commit comments

Comments
 (0)