Skip to content

Commit 6ba1fce

Browse files
sdalujhedberg
authored andcommitted
Bluetooth: shell: Fix missing return statement for name command
Return once bt name has been displayed Signed-off-by: Stephane D'Alu <[email protected]>
1 parent 3cc5bda commit 6ba1fce

File tree

1 file changed

+1
-0
lines changed
  • subsys/bluetooth/shell

1 file changed

+1
-0
lines changed

subsys/bluetooth/shell/bt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ static int cmd_name(const struct shell *shell, size_t argc, char *argv[])
318318

319319
if (argc < 2) {
320320
shell_print(shell, "Bluetooth Local Name: %s", bt_get_name());
321+
return 0;
321322
}
322323

323324
err = bt_set_name(argv[1]);

0 commit comments

Comments
 (0)