mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Pinetime-JF: Recognize device if it annouces itself as InfiniTime
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user