1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 20:36:51 +01:00

Garmin Instinct 2X Solar: Fix recognition of some watches

This commit is contained in:
José Rebelo 2024-06-16 17:38:42 +01:00
parent 5be0c612c6
commit afff822ab1

View File

@ -8,7 +8,8 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminInstinct2XSolarCoordinator extends GarminCoordinator { public class GarminInstinct2XSolarCoordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("^Instinct 2X Sol$"); // Allow ending both with "Sol" (#3063) and "Solar" (reported on Matrix).
return Pattern.compile("^Instinct 2X Sol(ar)?$");
} }
@Override @Override