shell: Make bt_shell_add_submenu set main menu if none has been set
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 28 Mar 2022 20:56:58 +0000 (13:56 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commitdb9d1d53ca70b76a1e195a96982c81a77a27a270
treee68e6c467cc68124c703bbb1bf142ea910ea8abf
parentb5d4ae3ce098a1055946175fb478d697113fde75
shell: Make bt_shell_add_submenu set main menu if none has been set

If not main menu has been set when calling bt_shell_add_submenu then
turns it on it main menu.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/shell.c