From 0330dadfbb9490fd2abfb25e7c45e924bea9494e Mon Sep 17 00:00:00 2001 From: WanqQixiang Date: Mon, 20 Feb 2023 19:20:31 +0800 Subject: [PATCH] bugfix: Register client command when matter shell is disabled --- examples/light_switch/main/app_driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/light_switch/main/app_driver.cpp b/examples/light_switch/main/app_driver.cpp index 95b5c938d..83ee92dd1 100644 --- a/examples/light_switch/main/app_driver.cpp +++ b/examples/light_switch/main/app_driver.cpp @@ -277,8 +277,8 @@ app_driver_handle_t app_driver_switch_init() /* Other initializations */ #if CONFIG_ENABLE_CHIP_SHELL app_driver_register_commands(); - client::set_command_callback(app_driver_client_command_callback, app_driver_client_group_command_callback, NULL); #endif // CONFIG_ENABLE_CHIP_SHELL + client::set_command_callback(app_driver_client_command_callback, app_driver_client_group_command_callback, NULL); return (app_driver_handle_t)handle; }