1 diff --git a/sixpair.c b/sixpair.c
2 index b009a6f..78b7ef0 100644
5 @@ -76,11 +76,11 @@ void process_device(int argc, char **argv, struct usb_device *dev,
9 - FILE *f = popen("hcitool dev", "r");
10 + FILE *f = popen("bluetoothctl list", "r");
12 - fscanf(f, "%*s\n%*s %x:%x:%x:%x:%x:%x",
13 + fscanf(f, "%*s %x:%x:%x:%x:%x:%x",
14 &mac[0],&mac[1],&mac[2],&mac[3],&mac[4],&mac[5]) != 6 ) {
15 - printf("Unable to retrieve local bd_addr from `hcitool dev`.\n");
16 + printf("Unable to retrieve local bd_addr from `bluetoothctl list`.\n");
17 printf("Please enable Bluetooth or specify an address manually.\n");