@@ -179,7 +179,7 @@ esp_err_t esp_bt_hf_vra(esp_bd_addr_t remote_addr, esp_hf_vr_state_t value)
179
179
180
180
/* Switch to BTC context */
181
181
bt_status_t status = btc_transfer_context (& msg , & arg , sizeof (btc_hf_args_t ), NULL );
182
- return (status = BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
182
+ return (status == BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
183
183
}
184
184
185
185
esp_err_t esp_bt_hf_volume_control (esp_bd_addr_t remote_addr , esp_hf_volume_control_target_t type , int volume )
@@ -200,7 +200,7 @@ esp_err_t esp_bt_hf_volume_control(esp_bd_addr_t remote_addr, esp_hf_volume_cont
200
200
201
201
/* Switch to BTC context */
202
202
bt_status_t status = btc_transfer_context (& msg , & arg , sizeof (btc_hf_args_t ), NULL );
203
- return (status = BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
203
+ return (status == BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
204
204
}
205
205
206
206
esp_err_t esp_hf_unat_response (esp_bd_addr_t remote_addr , char * unat )
@@ -220,7 +220,7 @@ esp_err_t esp_hf_unat_response(esp_bd_addr_t remote_addr, char *unat)
220
220
221
221
/* Switch to BTC context */
222
222
bt_status_t status = btc_transfer_context (& msg , & arg , sizeof (btc_hf_args_t ), btc_hf_arg_deep_copy );
223
- return (status = BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
223
+ return (status == BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
224
224
}
225
225
226
226
esp_err_t esp_bt_hf_cmee_response (esp_bd_addr_t remote_addr , esp_hf_at_response_code_t response_code , esp_hf_cme_err_t error_code )
@@ -241,7 +241,7 @@ esp_err_t esp_bt_hf_cmee_response(esp_bd_addr_t remote_addr, esp_hf_at_response_
241
241
242
242
/* Switch to BTC context */
243
243
bt_status_t status = btc_transfer_context (& msg , & arg , sizeof (btc_hf_args_t ), NULL );
244
- return (status = BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
244
+ return (status == BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
245
245
}
246
246
247
247
esp_err_t esp_bt_hf_indchange_notification (esp_bd_addr_t remote_addr ,
@@ -368,7 +368,7 @@ esp_err_t esp_bt_hf_cnum_response(esp_bd_addr_t remote_addr, char *number, esp_h
368
368
369
369
/* Switch to BTC context */
370
370
bt_status_t status = btc_transfer_context (& msg , & arg , sizeof (btc_hf_args_t ), btc_hf_arg_deep_copy );
371
- return (status = BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
371
+ return (status == BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
372
372
}
373
373
374
374
esp_err_t esp_bt_hf_bsir (esp_bd_addr_t remote_addr , esp_hf_in_band_ring_state_t state )
@@ -388,7 +388,7 @@ esp_err_t esp_bt_hf_bsir(esp_bd_addr_t remote_addr, esp_hf_in_band_ring_state_t
388
388
389
389
/* Switch to BTC context */
390
390
bt_status_t status = btc_transfer_context (& msg , & arg , sizeof (btc_hf_args_t ), NULL );
391
- return (status = BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
391
+ return (status == BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
392
392
}
393
393
394
394
esp_err_t esp_bt_hf_answer_call (esp_bd_addr_t remote_addr , int num_active , int num_held ,
@@ -415,7 +415,7 @@ esp_err_t esp_bt_hf_answer_call(esp_bd_addr_t remote_addr, int num_active, int n
415
415
416
416
/* Switch to BTC context */
417
417
bt_status_t status = btc_transfer_context (& msg , & arg , sizeof (btc_hf_args_t ), btc_hf_arg_deep_copy );
418
- return (status = BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
418
+ return (status == BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
419
419
}
420
420
421
421
esp_err_t esp_bt_hf_reject_call (esp_bd_addr_t remote_addr , int num_active , int num_held ,
@@ -442,7 +442,7 @@ esp_err_t esp_bt_hf_reject_call(esp_bd_addr_t remote_addr, int num_active, int n
442
442
443
443
/* Switch to BTC context */
444
444
bt_status_t status = btc_transfer_context (& msg , & arg , sizeof (btc_hf_args_t ), btc_hf_arg_deep_copy );
445
- return (status = BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
445
+ return (status == BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
446
446
}
447
447
448
448
esp_err_t esp_bt_hf_end_call (esp_bd_addr_t remote_addr , int num_active , int num_held ,
@@ -469,7 +469,7 @@ esp_err_t esp_bt_hf_end_call(esp_bd_addr_t remote_addr, int num_active, int num_
469
469
470
470
/* Switch to BTC context */
471
471
bt_status_t status = btc_transfer_context (& msg , & arg , sizeof (btc_hf_args_t ), btc_hf_arg_deep_copy );
472
- return (status = BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
472
+ return (status == BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
473
473
}
474
474
475
475
esp_err_t esp_bt_hf_out_call (esp_bd_addr_t remote_addr , int num_active , int num_held ,
@@ -496,7 +496,7 @@ esp_err_t esp_bt_hf_out_call(esp_bd_addr_t remote_addr, int num_active, int num_
496
496
497
497
/* Switch to BTC context */
498
498
bt_status_t status = btc_transfer_context (& msg , & arg , sizeof (btc_hf_args_t ), btc_hf_arg_deep_copy );
499
- return (status = BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
499
+ return (status == BT_STATUS_SUCCESS ) ? ESP_OK : ESP_FAIL ;
500
500
}
501
501
502
502
esp_err_t esp_bt_hf_register_data_callback (esp_hf_incoming_data_cb_t recv , esp_hf_outgoing_data_cb_t send )
0 commit comments