Skip to content

Commit bc47bce

Browse files
MarkWangChinesekartben
authored andcommitted
bluetooth: handsfree: improve the cod print string
cod is three bytes, print it as 6 hex values. Signed-off-by: Mark Wang <[email protected]>
1 parent 085b216 commit bc47bce

File tree

1 file changed

+1
-1
lines changed
  • samples/bluetooth/handsfree_ag/src

1 file changed

+1
-1
lines changed

samples/bluetooth/handsfree_ag/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static void discovery_timeout_cb(const struct bt_br_discovery_result *results, s
236236

237237
for (i = 0; i < count; i++) {
238238
bt_addr_to_str(&results[i].addr, addr, sizeof(addr));
239-
printk("Device[%d]: %s, rssi %d, cod 0x%X%X%X", i, addr, results[i].rssi,
239+
printk("Device[%d]: %s, rssi %d, cod 0x%02x%02x%02x", i, addr, results[i].rssi,
240240
results[i].cod[0], results[i].cod[1], results[i].cod[2]);
241241

242242
major_device = (uint8_t)BT_COD_MAJOR_DEVICE_CLASS(results[i].cod);

0 commit comments

Comments
 (0)