fix: Remove the check for recv and send being NULL

This commit is contained in:
yangfeng
2026-05-19 09:46:41 +08:00
committed by BOT
parent 25513bfd56
commit 7a5d11aab1
2 changed files with 1 additions and 4 deletions
@@ -518,9 +518,6 @@ esp_err_t esp_hf_client_register_data_callback(esp_hf_client_incoming_data_cb_t
if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) {
return ESP_ERR_INVALID_STATE;
}
if (recv == NULL || send == NULL) {
return ESP_ERR_INVALID_ARG;
}
btc_msg_t msg;
msg.sig = BTC_SIG_API_CALL;
@@ -683,7 +683,7 @@ esp_err_t esp_hf_client_send_nrec(void);
* @return
* - ESP_OK: success
* - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
* - ESP_FAIL: if callback is a NULL function pointer
* - ESP_FAIL: others
*
*/
esp_err_t esp_hf_client_register_data_callback(esp_hf_client_incoming_data_cb_t recv,