26
26
#include < app/clusters/bindings/bindings.h>
27
27
#include < lib/support/CodeUtils.h>
28
28
29
- #if defined(ENABLE_CHIP_SHELL )
29
+ #if defined(CONFIG_CHIP_LIB_SHELL )
30
30
#include " lib/shell/Engine.h"
31
31
#include " lib/shell/commands/Help.h"
32
- #endif // ENABLE_CHIP_SHELL
32
+ #endif // CONFIG_CHIP_LIB_SHELL
33
33
34
34
using namespace chip ;
35
35
using namespace chip ::app;
36
36
37
- #if defined(ENABLE_CHIP_SHELL )
37
+ #if defined(CONFIG_CHIP_LIB_SHELL )
38
38
using Shell::Engine;
39
39
using Shell::shell_command_t ;
40
40
using Shell::streamer_get;
@@ -47,7 +47,7 @@ Engine sShellSwitchGroupsSubCommands;
47
47
Engine sShellSwitchGroupsOnOffSubCommands ;
48
48
49
49
Engine sShellSwitchBindingSubCommands ;
50
- #endif // defined(ENABLE_CHIP_SHELL )
50
+ #endif // defined(CONFIG_CHIP_LIB_SHELL )
51
51
52
52
namespace {
53
53
@@ -140,7 +140,7 @@ void LightSwitchContextReleaseHandler(void * context)
140
140
Platform::Delete (static_cast <BindingCommandData *>(context));
141
141
}
142
142
143
- #ifdef ENABLE_CHIP_SHELL
143
+ #ifdef CONFIG_CHIP_LIB_SHELL
144
144
145
145
/* *******************************************************
146
146
* Switch shell functions
@@ -384,7 +384,7 @@ static void RegisterSwitchCommands()
384
384
385
385
Engine::Root ().RegisterCommands (&sSwitchCommand , 1 );
386
386
}
387
- #endif // ENABLE_CHIP_SHELL
387
+ #endif // CONFIG_CHIP_LIB_SHELL
388
388
389
389
void InitBindingHandlerInternal (intptr_t arg)
390
390
{
@@ -439,7 +439,7 @@ CHIP_ERROR InitBindingHandler()
439
439
// so it requires the Server instance to be correctly initialized. Post the init function to
440
440
// the event queue so that everything is ready when initialization is conducted.
441
441
chip::DeviceLayer::PlatformMgr ().ScheduleWork (InitBindingHandlerInternal);
442
- #if defined(ENABLE_CHIP_SHELL )
442
+ #if defined(CONFIG_CHIP_LIB_SHELL )
443
443
RegisterSwitchCommands ();
444
444
#endif
445
445
return CHIP_NO_ERROR;
0 commit comments