diff --git a/subsys/bluetooth/shell/gatt.c b/subsys/bluetooth/shell/gatt.c index 32effc53ccd..6bbead3505c 100644 --- a/subsys/bluetooth/shell/gatt.c +++ b/subsys/bluetooth/shell/gatt.c @@ -511,6 +511,7 @@ static int cmd_subscribe(const struct shell *shell, size_t argc, char *argv[]) err = bt_gatt_subscribe(default_conn, &subscribe_params); if (err) { + subscribe_params.value_handle = 0U; shell_error(shell, "Subscribe failed (err %d)", err); } else { shell_print(shell, "Subscribed");