diff --git a/subsys/bluetooth/shell/bt.c b/subsys/bluetooth/shell/bt.c index a12b3d072db..870c0f1e0aa 100644 --- a/subsys/bluetooth/shell/bt.c +++ b/subsys/bluetooth/shell/bt.c @@ -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]);