1
0
mirror of https://github.com/bluekitchen/btstack.git synced 2025-04-04 04:20:58 +00:00

hfp_ag: skip comma after last status indicator

This commit is contained in:
Matthias Ringwald 2021-03-30 14:02:42 +02:00
parent d0a0eceeda
commit ae46d66684

@ -323,7 +323,7 @@ static int hfp_hf_indicators_join(char * buffer, int buffer_size){
offset += snprintf(buffer+offset, buffer_size-offset, "%d,", hfp_generic_status_indicators[i].uuid); offset += snprintf(buffer+offset, buffer_size-offset, "%d,", hfp_generic_status_indicators[i].uuid);
} }
if (i < hfp_generic_status_indicators_nr){ if (i < hfp_generic_status_indicators_nr){
offset += snprintf(buffer+offset, buffer_size-offset, "%d,", hfp_generic_status_indicators[i].uuid); offset += snprintf(buffer+offset, buffer_size-offset, "%d", hfp_generic_status_indicators[i].uuid);
} }
return offset; return offset;
} }