Bluetooth: shell: Fix missing return statement for name command
Return once bt name has been displayed Signed-off-by: Stephane D'Alu <sdalu@sdalu.com>
This commit is contained in:
parent
3cc5bda2fa
commit
6ba1fcec3f
|
@ -318,6 +318,7 @@ static int cmd_name(const struct shell *shell, size_t argc, char *argv[])
|
|||
|
||||
if (argc < 2) {
|
||||
shell_print(shell, "Bluetooth Local Name: %s", bt_get_name());
|
||||
return 0;
|
||||
}
|
||||
|
||||
err = bt_set_name(argv[1]);
|
||||
|
|
Loading…
Reference in New Issue