From 956db3204ad0b70424e4b834a00c785bec379a96 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 9 Jan 2025 09:38:06 +0100 Subject: Added C Bluetooth scan example --- c-bluetooth/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c-bluetooth/scan.c') diff --git a/c-bluetooth/scan.c b/c-bluetooth/scan.c index 30cfe36..17fe433 100644 --- a/c-bluetooth/scan.c +++ b/c-bluetooth/scan.c @@ -27,7 +27,7 @@ int main(int argc, char **argv) { ii = (inquiry_info*)malloc(max_rsp * sizeof(inquiry_info)); num_rsp = hci_inquiry(dev_id, len, max_rsp, NULL, &ii, flags); - if(num_rsp < 0) { + if( num_rsp < 0 ) { perror("hci_inquiry"); } -- cgit v1.2.3