|
20 | 20 | #include "AppConfig.h"
|
21 | 21 | #include <app/CommandSender.h>
|
22 | 22 | #include <app/clusters/bindings/BindingManager.h>
|
| 23 | +#include <app/clusters/bindings/bindings.h> |
23 | 24 | #include <app/server/Server.h>
|
24 | 25 | #include <controller/InvokeInteraction.h>
|
25 | 26 | #include <controller/ReadInteraction.h>
|
26 |
| -#include <platform/CHIPDeviceLayer.h> |
27 |
| -#include <app/clusters/bindings/bindings.h> |
28 | 27 | #include <lib/support/CodeUtils.h>
|
| 28 | +#include <platform/CHIPDeviceLayer.h> |
29 | 29 |
|
30 | 30 | using namespace chip;
|
31 | 31 | using namespace chip::app;
|
@@ -555,11 +555,12 @@ void BindingHandler::RegisterSwitchCommands()
|
555 | 555 | static const shell_command_t sSwitchCommand = { &SwitchCommandHandler, "switch",
|
556 | 556 | "Light-switch commands. Usage: switch <subcommand>" };
|
557 | 557 |
|
558 |
| - sShellSwitchGroupsOnOffSubCommands.RegisterCommands(sSwitchGroupsOnOffSubCommands, ArraySize(sSwitchGroupsOnOffSubCommands)); |
559 |
| - sShellSwitchOnOffSubCommands.RegisterCommands(sSwitchOnOffSubCommands, ArraySize(sSwitchOnOffSubCommands)); |
560 |
| - sShellSwitchGroupsSubCommands.RegisterCommands(sSwitchGroupsSubCommands, ArraySize(sSwitchGroupsSubCommands)); |
561 |
| - sShellSwitchBindingSubCommands.RegisterCommands(sSwitchBindingSubCommands, ArraySize(sSwitchBindingSubCommands)); |
562 |
| - sShellSwitchSubCommands.RegisterCommands(sSwitchSubCommands, ArraySize(sSwitchSubCommands)); |
| 558 | + sShellSwitchGroupsOnOffSubCommands.RegisterCommands(sSwitchGroupsOnOffSubCommands, |
| 559 | + MATTER_ARRAY_SIZE(sSwitchGroupsOnOffSubCommands)); |
| 560 | + sShellSwitchOnOffSubCommands.RegisterCommands(sSwitchOnOffSubCommands, MATTER_ARRAY_SIZE(sSwitchOnOffSubCommands)); |
| 561 | + sShellSwitchGroupsSubCommands.RegisterCommands(sSwitchGroupsSubCommands, MATTER_ARRAY_SIZE(sSwitchGroupsSubCommands)); |
| 562 | + sShellSwitchBindingSubCommands.RegisterCommands(sSwitchBindingSubCommands, MATTER_ARRAY_SIZE(sSwitchBindingSubCommands)); |
| 563 | + sShellSwitchSubCommands.RegisterCommands(sSwitchSubCommands, MATTER_ARRAY_SIZE(sSwitchSubCommands)); |
563 | 564 |
|
564 | 565 | Engine::Root().RegisterCommands(&sSwitchCommand, 1);
|
565 | 566 | }
|
|
0 commit comments