Skip to content

Commit b82835c

Browse files
committed
Break for loop if HID device is found
1 parent 4a44c8f commit b82835c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

BTD.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ void BTD::HCI_event_task() {
464464
disc_bdaddr[j] = hcibuf[j + 3 + 6 * i];
465465

466466
hci_set_flag(HCI_FLAG_DEVICE_FOUND);
467+
break;
467468
}
468469
#ifdef EXTRADEBUG
469470
else {

0 commit comments

Comments
 (0)