feat: add support for broader range of Yawell R11 names

This commit is contained in:
Daniel Giritzer
2025-08-25 20:03:03 +02:00
committed by José Rebelo
parent 9d379991e0
commit 1169c416b1
2 changed files with 3 additions and 1 deletions
@@ -23,7 +23,7 @@ import nodomain.freeyourgadget.gadgetbridge.R;
public class YawellR11Coordinator extends AbstractYawellRingCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^R11_[0-9A-F]{4}$");
return Pattern.compile("^R11C?_[0-9A-F]{4}$");
}
@Override
@@ -49,6 +49,8 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
put("P8", DeviceType.WASPOS);
put("P8DFU", DeviceType.WASPOS);
put("P80", DeviceType.COLMI_P80);
put("R11C_B200", DeviceType.YAWELL_R11);
put("R11_B200", DeviceType.YAWELL_R11);
}};
for (Map.Entry<String, DeviceType> e : bluetoothNameToExpectedType.entrySet()) {