From 25ca3296506845a78fe1396c570af15baffb63c6 Mon Sep 17 00:00:00 2001 From: hejiaxin Date: Wed, 2 Sep 2026 17:43:12 +0800 Subject: [PATCH] fix(bt_hfp): Fix the solution of unknown AT command --- components/bt/host/bluedroid/api/esp_hf_ag_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/host/bluedroid/api/esp_hf_ag_api.c b/components/bt/host/bluedroid/api/esp_hf_ag_api.c index 2bdd139294f..e25c8c6c94d 100644 --- a/components/bt/host/bluedroid/api/esp_hf_ag_api.c +++ b/components/bt/host/bluedroid/api/esp_hf_ag_api.c @@ -241,7 +241,7 @@ esp_err_t esp_hf_ag_unknown_at_send(esp_bd_addr_t remote_addr, char *unat) if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) { return ESP_ERR_INVALID_STATE; } - if (remote_addr == NULL || unat == NULL) { + if (remote_addr == NULL) { return ESP_ERR_INVALID_ARG; } btc_msg_t msg;