@@ -584,32 +584,35 @@ 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
+ ARRAY_SIZE (sSwitchGroupsIdentifySubCommands ));
588
+ sShellSwitchGroupsOnOffSubCommands .RegisterCommands (sSwitchGroupsOnOffSubCommands , ARRAY_SIZE (sSwitchGroupsOnOffSubCommands ));
589
589
sShellSwitchGroupsLevelControlSubCommands .RegisterCommands (sSwitchGroupsLevelControlSubCommands ,
590
- ArraySize (sSwitchGroupsLevelControlSubCommands ));
590
+ ARRAY_SIZE (sSwitchGroupsLevelControlSubCommands ));
591
591
sShellSwitchGroupsColorControlSubCommands .RegisterCommands (sSwitchGroupsColorControlSubCommands ,
592
- ArraySize (sSwitchGroupsColorControlSubCommands ));
592
+ ARRAY_SIZE (sSwitchGroupsColorControlSubCommands ));
593
593
sShellSwitchGroupsThermostatSubCommands .RegisterCommands (sSwitchGroupsThermostatSubCommands ,
594
- ArraySize (sSwitchGroupsThermostatSubCommands ));
594
+ ARRAY_SIZE (sSwitchGroupsThermostatSubCommands ));
595
595
596
596
// 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 ));
597
+ sShellSwitchIdentifySubCommands .RegisterCommands (sSwitchIdentifySubCommands , ARRAY_SIZE (sSwitchIdentifySubCommands ));
598
+ sShellSwitchIdentifyReadSubCommands .RegisterCommands (sSwitchIdentifyReadSubCommands ,
599
+ ARRAY_SIZE (sSwitchIdentifyReadSubCommands ));
600
+ sShellSwitchOnOffSubCommands .RegisterCommands (sSwitchOnOffSubCommands , ARRAY_SIZE (sSwitchOnOffSubCommands ));
601
+ sShellSwitchOnOffReadSubCommands .RegisterCommands (sSwitchOnOffReadSubCommands , ARRAY_SIZE (sSwitchOnOffReadSubCommands ));
602
+ sShellSwitchLevelControlSubCommands .RegisterCommands (sSwitchLevelControlSubCommands ,
603
+ ARRAY_SIZE (sSwitchLevelControlSubCommands ));
602
604
sShellSwitchLevelControlReadSubCommands .RegisterCommands (sSwitchLevelControlReadSubCommands ,
603
- ArraySize (sSwitchLevelControlReadSubCommands ));
604
- sShellSwitchColorControlSubCommands .RegisterCommands (sSwitchColorControlSubCommands , ArraySize (sSwitchColorControlSubCommands ));
605
+ ARRAY_SIZE (sSwitchLevelControlReadSubCommands ));
606
+ sShellSwitchColorControlSubCommands .RegisterCommands (sSwitchColorControlSubCommands ,
607
+ ARRAY_SIZE (sSwitchColorControlSubCommands ));
605
608
sShellSwitchColorControlReadSubCommands .RegisterCommands (sSwitchColorControlReadSubCommands ,
606
- ArraySize (sSwitchColorControlReadSubCommands ));
607
- sShellSwitchThermostatSubCommands .RegisterCommands (sSwitchThermostatSubCommands , ArraySize (sSwitchThermostatSubCommands ));
609
+ ARRAY_SIZE (sSwitchColorControlReadSubCommands ));
610
+ sShellSwitchThermostatSubCommands .RegisterCommands (sSwitchThermostatSubCommands , ARRAY_SIZE (sSwitchThermostatSubCommands ));
608
611
sShellSwitchThermostatReadSubCommands .RegisterCommands (sSwitchThermostatReadSubCommands ,
609
- ArraySize (sSwitchThermostatReadSubCommands ));
610
- sShellSwitchGroupsSubCommands .RegisterCommands (sSwitchGroupsSubCommands , ArraySize (sSwitchGroupsSubCommands ));
611
- sShellSwitchBindingSubCommands .RegisterCommands (sSwitchBindingSubCommands , ArraySize (sSwitchBindingSubCommands ));
612
- sShellSwitchSubCommands .RegisterCommands (sSwitchSubCommands , ArraySize (sSwitchSubCommands ));
612
+ ARRAY_SIZE (sSwitchThermostatReadSubCommands ));
613
+ sShellSwitchGroupsSubCommands .RegisterCommands (sSwitchGroupsSubCommands , ARRAY_SIZE (sSwitchGroupsSubCommands ));
614
+ sShellSwitchBindingSubCommands .RegisterCommands (sSwitchBindingSubCommands , ARRAY_SIZE (sSwitchBindingSubCommands ));
615
+ sShellSwitchSubCommands .RegisterCommands (sSwitchSubCommands , ARRAY_SIZE (sSwitchSubCommands ));
613
616
614
617
Engine::Root ().RegisterCommands (&sSwitchCommand , 1 );
615
618
}
0 commit comments