summaryrefslogtreecommitdiffstats
path: root/examples/java
diff options
context:
space:
mode:
Diffstat (limited to 'examples/java')
-rw-r--r--examples/java/ScannerTinyB10.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/examples/java/ScannerTinyB10.java b/examples/java/ScannerTinyB10.java
index 1a97ea84..2f81f54d 100644
--- a/examples/java/ScannerTinyB10.java
+++ b/examples/java/ScannerTinyB10.java
@@ -91,10 +91,9 @@ public class ScannerTinyB10 {
System.err.println("****** FOUND__-2: Skip non public LE "+device.toString());
return;
}
- if( waitForDevice.equals(EUI48_ANY_DEVICE) ||
- ( waitForDevice.equals(device.getAddress()) &&
- !devicesProcessed.contains(waitForDevice) &&
- !devicesInProcessing.contains(waitForDevice)
+ if( !devicesInProcessing.contains( device.getAddress() ) &&
+ ( waitForDevice.equals(EUI48_ANY_DEVICE) ||
+ ( waitForDevice.equals(device.getAddress()) && !devicesProcessed.contains(waitForDevice) )
) )
{
System.err.println("****** FOUND__-0: Connecting "+device.toString());
@@ -125,10 +124,9 @@ public class ScannerTinyB10 {
return;
}
- if( waitForDevice.equals(EUI48_ANY_DEVICE) ||
- ( waitForDevice.equals(device.getAddress()) &&
- !devicesProcessed.contains(waitForDevice) &&
- !devicesInProcessing.contains(waitForDevice)
+ if( !devicesInProcessing.contains( device.getAddress() ) &&
+ ( waitForDevice.equals(EUI48_ANY_DEVICE) ||
+ ( waitForDevice.equals(device.getAddress()) && !devicesProcessed.contains(waitForDevice) )
) )
{
System.err.println("****** CONNECTED-0: Processing "+device.toString());