@@ -584,32 +584,37 @@ static void RegisterSwitchCommands()
584
584
585
585
// Register groups command
586
586
sShellSwitchGroupsIdentifySubCommands .RegisterCommands (sSwitchGroupsIdentifySubCommands ,
587
- ArraySize (sSwitchGroupsIdentifySubCommands ));
588
- sShellSwitchGroupsOnOffSubCommands .RegisterCommands (sSwitchGroupsOnOffSubCommands , ArraySize (sSwitchGroupsOnOffSubCommands ));
587
+ MATTER_ARRAY_SIZE (sSwitchGroupsIdentifySubCommands ));
588
+ sShellSwitchGroupsOnOffSubCommands .RegisterCommands (sSwitchGroupsOnOffSubCommands ,
589
+ MATTER_ARRAY_SIZE (sSwitchGroupsOnOffSubCommands ));
589
590
sShellSwitchGroupsLevelControlSubCommands .RegisterCommands (sSwitchGroupsLevelControlSubCommands ,
590
- ArraySize (sSwitchGroupsLevelControlSubCommands ));
591
+ MATTER_ARRAY_SIZE (sSwitchGroupsLevelControlSubCommands ));
591
592
sShellSwitchGroupsColorControlSubCommands .RegisterCommands (sSwitchGroupsColorControlSubCommands ,
592
- ArraySize (sSwitchGroupsColorControlSubCommands ));
593
+ MATTER_ARRAY_SIZE (sSwitchGroupsColorControlSubCommands ));
593
594
sShellSwitchGroupsThermostatSubCommands .RegisterCommands (sSwitchGroupsThermostatSubCommands ,
594
- ArraySize (sSwitchGroupsThermostatSubCommands ));
595
+ MATTER_ARRAY_SIZE (sSwitchGroupsThermostatSubCommands ));
595
596
596
597
// Register commands
597
- sShellSwitchIdentifySubCommands .RegisterCommands (sSwitchIdentifySubCommands , ArraySize (sSwitchIdentifySubCommands ));
598
- sShellSwitchIdentifyReadSubCommands .RegisterCommands (sSwitchIdentifyReadSubCommands , ArraySize (sSwitchIdentifyReadSubCommands ));
599
- sShellSwitchOnOffSubCommands .RegisterCommands (sSwitchOnOffSubCommands , ArraySize (sSwitchOnOffSubCommands ));
600
- sShellSwitchOnOffReadSubCommands .RegisterCommands (sSwitchOnOffReadSubCommands , ArraySize (sSwitchOnOffReadSubCommands ));
601
- sShellSwitchLevelControlSubCommands .RegisterCommands (sSwitchLevelControlSubCommands , ArraySize (sSwitchLevelControlSubCommands ));
598
+ sShellSwitchIdentifySubCommands .RegisterCommands (sSwitchIdentifySubCommands , MATTER_ARRAY_SIZE (sSwitchIdentifySubCommands ));
599
+ sShellSwitchIdentifyReadSubCommands .RegisterCommands (sSwitchIdentifyReadSubCommands ,
600
+ MATTER_ARRAY_SIZE (sSwitchIdentifyReadSubCommands ));
601
+ sShellSwitchOnOffSubCommands .RegisterCommands (sSwitchOnOffSubCommands , MATTER_ARRAY_SIZE (sSwitchOnOffSubCommands ));
602
+ sShellSwitchOnOffReadSubCommands .RegisterCommands (sSwitchOnOffReadSubCommands , MATTER_ARRAY_SIZE (sSwitchOnOffReadSubCommands ));
603
+ sShellSwitchLevelControlSubCommands .RegisterCommands (sSwitchLevelControlSubCommands ,
604
+ MATTER_ARRAY_SIZE (sSwitchLevelControlSubCommands ));
602
605
sShellSwitchLevelControlReadSubCommands .RegisterCommands (sSwitchLevelControlReadSubCommands ,
603
- ArraySize (sSwitchLevelControlReadSubCommands ));
604
- sShellSwitchColorControlSubCommands .RegisterCommands (sSwitchColorControlSubCommands , ArraySize (sSwitchColorControlSubCommands ));
606
+ MATTER_ARRAY_SIZE (sSwitchLevelControlReadSubCommands ));
607
+ sShellSwitchColorControlSubCommands .RegisterCommands (sSwitchColorControlSubCommands ,
608
+ MATTER_ARRAY_SIZE (sSwitchColorControlSubCommands ));
605
609
sShellSwitchColorControlReadSubCommands .RegisterCommands (sSwitchColorControlReadSubCommands ,
606
- ArraySize (sSwitchColorControlReadSubCommands ));
607
- sShellSwitchThermostatSubCommands .RegisterCommands (sSwitchThermostatSubCommands , ArraySize (sSwitchThermostatSubCommands ));
610
+ MATTER_ARRAY_SIZE (sSwitchColorControlReadSubCommands ));
611
+ sShellSwitchThermostatSubCommands .RegisterCommands (sSwitchThermostatSubCommands ,
612
+ MATTER_ARRAY_SIZE (sSwitchThermostatSubCommands ));
608
613
sShellSwitchThermostatReadSubCommands .RegisterCommands (sSwitchThermostatReadSubCommands ,
609
- ArraySize (sSwitchThermostatReadSubCommands ));
610
- sShellSwitchGroupsSubCommands .RegisterCommands (sSwitchGroupsSubCommands , ArraySize (sSwitchGroupsSubCommands ));
611
- sShellSwitchBindingSubCommands .RegisterCommands (sSwitchBindingSubCommands , ArraySize (sSwitchBindingSubCommands ));
612
- sShellSwitchSubCommands .RegisterCommands (sSwitchSubCommands , ArraySize (sSwitchSubCommands ));
614
+ MATTER_ARRAY_SIZE (sSwitchThermostatReadSubCommands ));
615
+ sShellSwitchGroupsSubCommands .RegisterCommands (sSwitchGroupsSubCommands , MATTER_ARRAY_SIZE (sSwitchGroupsSubCommands ));
616
+ sShellSwitchBindingSubCommands .RegisterCommands (sSwitchBindingSubCommands , MATTER_ARRAY_SIZE (sSwitchBindingSubCommands ));
617
+ sShellSwitchSubCommands .RegisterCommands (sSwitchSubCommands , MATTER_ARRAY_SIZE (sSwitchSubCommands ));
613
618
614
619
Engine::Root ().RegisterCommands (&sSwitchCommand , 1 );
615
620
}
0 commit comments