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:
Stephane D'Alu 2019-11-16 23:40:55 +01:00 committed by Johan Hedberg
parent 3cc5bda2fa
commit 6ba1fcec3f
1 changed files with 1 additions and 0 deletions

View File

@ -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]);