Merge branch 'bugfix/hfp_reg_data_cb_v6.0' into 'release/v6.0'

fix: Remove the check for recv and send being NULL(6.0)

See merge request espressif/esp-idf!48615
This commit is contained in:
Jiang Jiang Jian
2026-05-29 10:27:03 +08:00
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;
@@ -57,7 +57,7 @@ typedef uint32_t (* esp_hf_client_outgoing_data_cb_t)(uint8_t *buf, uint32_t len
* @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,