[Silabs] Fix typo for light-switch-app (#32645)
* Update ShellCommands.h
* Update ShellCommands.cpp
* Update LightSwitchMgr.cpp
diff --git a/examples/light-switch-app/silabs/include/ShellCommands.h b/examples/light-switch-app/silabs/include/ShellCommands.h
index 576ad52..f9c6b5d 100644
--- a/examples/light-switch-app/silabs/include/ShellCommands.h
+++ b/examples/light-switch-app/silabs/include/ShellCommands.h
@@ -21,10 +21,10 @@
#if defined(ENABLE_CHIP_SHELL)
-namespace LightSwtichCommands {
+namespace LightSwitchCommands {
void RegisterSwitchCommands();
-} // namespace LightSwtichCommands
+} // namespace LightSwitchCommands
#endif // defined(ENABLE_CHIP_SHELL)
diff --git a/examples/light-switch-app/silabs/src/LightSwitchMgr.cpp b/examples/light-switch-app/silabs/src/LightSwitchMgr.cpp
index dddff2f..b33ac42 100644
--- a/examples/light-switch-app/silabs/src/LightSwitchMgr.cpp
+++ b/examples/light-switch-app/silabs/src/LightSwitchMgr.cpp
@@ -62,7 +62,7 @@
}
#if defined(ENABLE_CHIP_SHELL)
- LightSwtichCommands::RegisterSwitchCommands();
+ LightSwitchCommands::RegisterSwitchCommands();
#endif // defined(ENABLE_CHIP_SHELL)
return error;
diff --git a/examples/light-switch-app/silabs/src/ShellCommands.cpp b/examples/light-switch-app/silabs/src/ShellCommands.cpp
index ee58722..565f425 100644
--- a/examples/light-switch-app/silabs/src/ShellCommands.cpp
+++ b/examples/light-switch-app/silabs/src/ShellCommands.cpp
@@ -29,7 +29,7 @@
using namespace chip;
using namespace chip::app;
-namespace LightSwtichCommands {
+namespace LightSwitchCommands {
using Shell::Engine;
using Shell::shell_command_t;
@@ -286,6 +286,6 @@
Engine::Root().RegisterCommands(&sSwitchCommand, 1);
}
-} // namespace LightSwtichCommands
+} // namespace LightSwitchCommands
#endif // ENABLE_CHIP_SHELL