mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
hfp: avoid warnings about rfcomm_cid #0
This commit is contained in:
parent
093577fadb
commit
724f400dd4
@ -1611,6 +1611,7 @@ static void hfp_ag_send_call_status(hfp_connection_t * hfp_connection, int call_
|
||||
|
||||
static void hfp_run_for_context(hfp_connection_t *hfp_connection){
|
||||
if (!hfp_connection) return;
|
||||
if (!hfp_connection->rfcomm_cid) return;
|
||||
if (!rfcomm_can_send_packet_now(hfp_connection->rfcomm_cid)) {
|
||||
rfcomm_request_can_send_now_event(hfp_connection->rfcomm_cid);
|
||||
return;
|
||||
|
@ -584,6 +584,7 @@ static int call_setup_state_machine(hfp_connection_t * hfp_connection){
|
||||
|
||||
static void hfp_run_for_context(hfp_connection_t * hfp_connection){
|
||||
if (!hfp_connection) return;
|
||||
if (!hfp_connection->rfcomm_cid) return;
|
||||
if (!rfcomm_can_send_packet_now(hfp_connection->rfcomm_cid)) return;
|
||||
|
||||
int done = hfp_hf_run_for_context_service_level_connection(hfp_connection);
|
||||
|
Loading…
Reference in New Issue
Block a user