mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
remove printf
This commit is contained in:
parent
60ebb071aa
commit
41d0c87b0d
@ -129,21 +129,6 @@ int send_str_over_rfcomm(uint16_t cid, char * command){
|
||||
return 1;
|
||||
}
|
||||
|
||||
#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
|
||||
int get_bit(uint16_t bitmap, int position){
|
||||
return (bitmap >> position) & 1;
|
||||
|
@ -286,7 +286,6 @@ void hsp_ag_connect(bd_addr_t bd_addr){
|
||||
|
||||
void hsp_ag_disconnect(void){
|
||||
hsp_ag_release_audio_connection();
|
||||
printf(" rfcomm diconnect %d\n", hsp_state);
|
||||
if (hsp_state < HSP_W4_RFCOMM_CONNECTED){
|
||||
hsp_state = HSP_IDLE;
|
||||
return;
|
||||
@ -301,8 +300,6 @@ void hsp_ag_disconnect(void){
|
||||
}
|
||||
|
||||
void hsp_ag_establish_audio_connection(void){
|
||||
printf("hsp_ag_establish_audio_connection state %d\n", hsp_state);
|
||||
|
||||
switch (hsp_state){
|
||||
case HSP_RFCOMM_CONNECTION_ESTABLISHED:
|
||||
hsp_establish_audio_connection = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user