You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i use AT+CLCC check phone's call states , i get a wrong number from app.i check log and pint it ,i think this is a bug:now i get a right number.
i'm poor in english ,bug i think you can understand what I mean
/* wrong
case 4:
strncpy(hfp_connection->bnip_number, (char *)hfp_connection->line_buffer, sizeof(hfp_connection->bnip_number));
hfp_connection->bnip_number[sizeof(hfp_connection->bnip_number)-1] = 0;
break;
case 5:
value = btstack_atoi((char *)&hfp_connection->line_buffer[0]);
hfp_connection->bnip_type = value;
break;
*/
//right
case 4:
value = btstack_atoi((char *)&hfp_connection->line_buffer[0]);
hfp_connection->bnip_type = value;
break;
case 5:
strncpy(hfp_connection->bnip_number, (char *)hfp_connection->line_buffer, sizeof(hfp_connection->bnip_number));
hfp_connection->bnip_number[sizeof(hfp_connection->bnip_number)-1] = 0;
break;
The text was updated successfully, but these errors were encountered:
also when i has 2 call (one hold and one active )i use at+clcc ,only record the first one call state
Query current call status
HFP_RX
+CLCC: 1,1,1,0,0,"xxxxxx00260",129," xxxxxx "
Enhanced Call Status: idx 1, dir 1, status 1, mpty 0, number xxxxxx, type 0
HFP_RX
+CLCC: 2,1,0,0,0,"xxxxxx00261",129," xxxxxx "
Enhanced Call Status: idx 1, dir 1, status 1, mpty 0, number xxxxxx, type 0
when i use AT+CLCC check phone's call states , i get a wrong number from app.i check log and pint it ,i think this is a bug:now i get a right number.
i'm poor in english ,bug i think you can understand what I mean
/* wrong
case 4:
strncpy(hfp_connection->bnip_number, (char *)hfp_connection->line_buffer, sizeof(hfp_connection->bnip_number));
hfp_connection->bnip_number[sizeof(hfp_connection->bnip_number)-1] = 0;
break;
case 5:
value = btstack_atoi((char *)&hfp_connection->line_buffer[0]);
hfp_connection->bnip_type = value;
break;
*/
//right
case 4:
value = btstack_atoi((char *)&hfp_connection->line_buffer[0]);
hfp_connection->bnip_type = value;
break;
case 5:
strncpy(hfp_connection->bnip_number, (char *)hfp_connection->line_buffer, sizeof(hfp_connection->bnip_number));
hfp_connection->bnip_number[sizeof(hfp_connection->bnip_number)-1] = 0;
break;
The text was updated successfully, but these errors were encountered: