C20: Fix bluetooth name matching on some watches

This commit is contained in:
José Rebelo
2025-10-16 20:04:02 +01:00
parent 01ff179071
commit 4f759f8d1c
2 changed files with 3 additions and 1 deletions
@@ -25,7 +25,7 @@ import nodomain.freeyourgadget.gadgetbridge.R;
public class C20Coordinator extends AbstractMoyoungDeviceCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^C20$");
return Pattern.compile("^C *20$");
}
@Override
@@ -140,6 +140,8 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
put("Fit1900", DeviceType.FITPRO);
put("M6-4711", DeviceType.FITPRO);
put("M4-4711", DeviceType.FITPRO);
put("C20", DeviceType.C20); // #4070
put("C 20", DeviceType.C20); // #5495
}};
for (Map.Entry<String, DeviceType> e : bluetoothNameToExpectedType.entrySet()) {