Diff between 6cb6e2ddf4471da365fe89ecd3c62454c9acf510 and 0cc480a546e9b4740451dbdaaadc3df8ca1f8c34
Changed Files
| File | Additions | Deletions | Status |
| src/shared/shell.c | +3 | -0 | modified |
Full Patch
diff --git a/src/shared/shell.c b/src/shared/shell.c
index 0d82bc2..7ba264b 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -1248,6 +1248,9 @@ bool bt_shell_add_submenu(const struct bt_shell_menu *menu)
if (!menu)
return false;
+ if (!data.main)
+ return bt_shell_set_menu(menu);
+
if (!data.submenus)
data.submenus = queue_new();