From 431ab19eba517a183cb128cc839b26617cf20cac Mon Sep 17 00:00:00 2001 From: cpchiang Date: Sun, 19 May 2024 19:08:57 -0700 Subject: [PATCH] drivers: usb: fix usb shell print garbled characters fix usb shell print garbled characters. Signed-off-by: cpchiang --- drivers/usb/usb_shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/usb_shell.c b/drivers/usb/usb_shell.c index 51d736011769f6..0354600947bd04 100644 --- a/drivers/usb/usb_shell.c +++ b/drivers/usb/usb_shell.c @@ -130,7 +130,8 @@ SHELL_STATIC_SUBCMD_SET_CREATE(m_sub_usb, SHELL_CMD(enable, NULL, SHELL_HELP_USB_ENABLE, cmd_usb_enable), SHELL_CMD(clear, NULL, SHELL_HELP_USB_CLEAR, cmd_usb_clear), SHELL_CMD_ARG(print, NULL, SHELL_HELP_USB_PRINT, cmd_usb_print, 2, 0), - SHELL_CMD_ARG(wait, NULL, SHELL_HELP_USB_WAIT, cmd_usb_wait, 2, 0) + SHELL_CMD_ARG(wait, NULL, SHELL_HELP_USB_WAIT, cmd_usb_wait, 2, 0), + SHELL_SUBCMD_SET_END ); SHELL_CMD_REGISTER(usb, &m_sub_usb, SHELL_HELP_SHELL, NULL);