From 009888b6880d983b265487f852e8213d3ab43a45 Mon Sep 17 00:00:00 2001 From: Daniel Dakhno Date: Thu, 10 Oct 2019 02:06:37 +0200 Subject: [PATCH] fixed coordinator to filter device specific service --- .../gadgetbridge/devices/qhybrid/QHybridCoordinator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/QHybridCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/QHybridCoordinator.java index fe68a0e41..23e25cd4e 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/QHybridCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/QHybridCoordinator.java @@ -40,7 +40,7 @@ public class QHybridCoordinator extends AbstractDeviceCoordinator { @Override public DeviceType getSupportedType(GBDeviceCandidate candidate) { for(ParcelUuid uuid : candidate.getServiceUuids()){ - if(uuid.getUuid().toString().equals("3dda0001-957f-7d4a-34a6-74696673696")){ + if(uuid.getUuid().toString().equals("3dda0001-957f-7d4a-34a6-74696673696d")){ return DeviceType.FOSSILQHYBRID; } } @@ -51,7 +51,7 @@ public class QHybridCoordinator extends AbstractDeviceCoordinator { @NonNull @Override public Collection createBLEScanFilters() { - return Collections.singletonList(new ScanFilter.Builder().setServiceUuid(ParcelUuid.fromString("3dda0001-957f-7d4a-34a6-74696673696")).build()); + return Collections.singletonList(new ScanFilter.Builder().setServiceUuid(ParcelUuid.fromString("3dda0001-957f-7d4a-34a6-74696673696d")).build()); } @Override