1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-22 14:52:25 +02:00

Pinetime-JF: Recognize device if it annouces itself as InfiniTime

This commit is contained in:
Andreas Shimokawa 2020-09-09 23:40:36 +02:00
parent 1d51c58f15
commit 1c2218079b

View File

@ -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;