mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-25 09:02:30 +00:00
remove printf from src
This commit is contained in:
parent
db2b9aad81
commit
ea86a2f3a7
@ -155,22 +155,6 @@ void hfp_hf_drop_mSBC_if_eSCO_not_supported(uint8_t * codecs, uint8_t * codecs_n
|
|||||||
memcpy(codecs, tmp_codecs, tmp_codec_nr);
|
memcpy(codecs, tmp_codecs, tmp_codec_nr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
void hfp_set_codec(hfp_connection_t * hfp_connection, uint8_t *packet, uint16_t size){
|
|
||||||
// parse available codecs
|
|
||||||
int pos = 0;
|
|
||||||
int i;
|
|
||||||
for (i=0; i<size; i++){
|
|
||||||
pos+=8;
|
|
||||||
if (packet[pos] > hfp_connection->negotiated_codec){
|
|
||||||
hfp_connection->negotiated_codec = packet[pos];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
printf("Negotiated Codec 0x%02x\n", hfp_connection->negotiated_codec);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// UTILS
|
// UTILS
|
||||||
int get_bit(uint16_t bitmap, int position){
|
int get_bit(uint16_t bitmap, int position){
|
||||||
return (bitmap >> position) & 1;
|
return (bitmap >> position) & 1;
|
||||||
|
@ -142,7 +142,6 @@ static void hfp_hf_emit_enhanced_call_status(btstack_packet_handler_t callback,
|
|||||||
static int has_codec_negotiation_feature(hfp_connection_t * hfp_connection){
|
static int has_codec_negotiation_feature(hfp_connection_t * hfp_connection){
|
||||||
int hf = get_bit(hfp_supported_features, HFP_HFSF_CODEC_NEGOTIATION);
|
int hf = get_bit(hfp_supported_features, HFP_HFSF_CODEC_NEGOTIATION);
|
||||||
int ag = get_bit(hfp_connection->remote_supported_features, HFP_AGSF_CODEC_NEGOTIATION);
|
int ag = get_bit(hfp_connection->remote_supported_features, HFP_AGSF_CODEC_NEGOTIATION);
|
||||||
printf("local %d, remote %d\n", hf, ag);
|
|
||||||
return hf && ag;
|
return hf && ag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -583,7 +583,6 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
|||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case HCI_EVENT_CONNECTION_REQUEST:
|
case HCI_EVENT_CONNECTION_REQUEST:
|
||||||
printf("hsp HCI_EVENT_CONNECTION_REQUEST\n");
|
|
||||||
hci_event_connection_request_get_bd_addr(packet, sco_event_addr);
|
hci_event_connection_request_get_bd_addr(packet, sco_event_addr);
|
||||||
ag_establish_sco = 1;
|
ag_establish_sco = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user