mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
feat: add support for broader range of fitpro devices
This commit is contained in:
committed by
José Rebelo
parent
6ead1e3b03
commit
6222fe9538
+1
-1
@@ -57,7 +57,7 @@ public class FitProDeviceCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("M6.*|M4.*|LH716|Sunset 6|Watch7|Fit1900");
|
return Pattern.compile("^(M6.*|M4.*|LH716|Sunset 6|Watch7|Fit1900|716)$");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+7
@@ -129,6 +129,13 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
|
|||||||
put("Galaxy Buds Pro (B352)", DeviceType.GALAXY_BUDS_PRO); // #2642
|
put("Galaxy Buds Pro (B352)", DeviceType.GALAXY_BUDS_PRO); // #2642
|
||||||
put("Redmi Watch 2 Lite 31A5", DeviceType.REDMIWATCH2LITE); // #2637
|
put("Redmi Watch 2 Lite 31A5", DeviceType.REDMIWATCH2LITE); // #2637
|
||||||
put("HUAWEI Band 6-A47", DeviceType.HUAWEIBAND6); // #2569
|
put("HUAWEI Band 6-A47", DeviceType.HUAWEIBAND6); // #2569
|
||||||
|
put("716", DeviceType.FITPRO);
|
||||||
|
put("LH716", DeviceType.FITPRO);
|
||||||
|
put("Sunset 6", DeviceType.FITPRO);
|
||||||
|
put("Watch7", DeviceType.FITPRO);
|
||||||
|
put("Fit1900", DeviceType.FITPRO);
|
||||||
|
put("M6-4711", DeviceType.FITPRO);
|
||||||
|
put("M4-4711", DeviceType.FITPRO);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
for (Map.Entry<String, DeviceType> e : bluetoothNameToExpectedType.entrySet()) {
|
for (Map.Entry<String, DeviceType> e : bluetoothNameToExpectedType.entrySet()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user