Skip to content

Commit

Permalink
Fix uuid bug in startScan18.
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldemarco committed Dec 22, 2018
1 parent dd66653 commit 5b34e20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ private void startScan18(Protos.ScanSettings proto) throws IllegalStateException
List<String> serviceUuids = proto.getServiceUuidsList();
UUID[] uuids = new UUID[serviceUuids.size()];
for(int i = 0; i < serviceUuids.size(); i++) {
uuids[0] = UUID.fromString(serviceUuids.get(0));
uuids[i] = UUID.fromString(serviceUuids.get(i));
}
boolean success = mBluetoothAdapter.startLeScan(uuids, getScanCallback18());
if(!success) throw new IllegalStateException("getBluetoothLeScanner() is null. Is the Adapter on?");
Expand Down

0 comments on commit 5b34e20

Please sign in to comment.