From 1c2218079b077977736b895fb715675221bfa3c1 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Wed, 9 Sep 2020 23:40:36 +0200 Subject: [PATCH] Pinetime-JF: Recognize device if it annouces itself as InfiniTime --- .../gadgetbridge/devices/pinetime/PineTimeJFCoordinator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pinetime/PineTimeJFCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pinetime/PineTimeJFCoordinator.java index ab513a414..3f811ebed 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pinetime/PineTimeJFCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pinetime/PineTimeJFCoordinator.java @@ -37,7 +37,7 @@ public class PineTimeJFCoordinator extends AbstractDeviceCoordinator { @Override public DeviceType getSupportedType(GBDeviceCandidate candidate) { String name = candidate.getDevice().getName(); - if (name != null && name.startsWith("Pinetime-JF")) { + if (name != null && (name.startsWith("Pinetime-JF") || name.startsWith("InfiniTime"))) { return DeviceType.PINETIME_JF; } return DeviceType.UNKNOWN;