From 00f0e2c009d96b7dccd6d73f2a2baa079d8f51c3 Mon Sep 17 00:00:00 2001 From: pankore <86098180+pankore@users.noreply.github.com> Date: Thu, 5 Jan 2023 00:51:08 +0800 Subject: [PATCH] [Ameba] Add Macro to InitBindingHandler (#24186) --- examples/all-clusters-app/ameba/main/chipinterface.cpp | 2 ++ examples/light-switch-app/ameba/main/chipinterface.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/all-clusters-app/ameba/main/chipinterface.cpp b/examples/all-clusters-app/ameba/main/chipinterface.cpp index ad92123d5795e7..e55666d1d6aee2 100644 --- a/examples/all-clusters-app/ameba/main/chipinterface.cpp +++ b/examples/all-clusters-app/ameba/main/chipinterface.cpp @@ -141,7 +141,9 @@ static void InitServer(intptr_t context) PrintOnboardingCodes(chip::RendezvousInformationFlags(chip::RendezvousInformationFlag::kBLE)); } +#if CONFIG_ENABLE_CHIP_SHELL InitBindingHandler(); +#endif } extern "C" void ChipTest(void) diff --git a/examples/light-switch-app/ameba/main/chipinterface.cpp b/examples/light-switch-app/ameba/main/chipinterface.cpp index fcdf8b963fc7bc..24e32a72decf39 100644 --- a/examples/light-switch-app/ameba/main/chipinterface.cpp +++ b/examples/light-switch-app/ameba/main/chipinterface.cpp @@ -116,7 +116,9 @@ static void InitServer(intptr_t context) PrintOnboardingCodes(chip::RendezvousInformationFlags(chip::RendezvousInformationFlag::kBLE)); } +#if CONFIG_ENABLE_CHIP_SHELL InitBindingHandler(); +#endif } extern "C" void ChipTest(void)