mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
feat: add support for broader range of Yawell R11 names
This commit is contained in:
committed by
José Rebelo
parent
9d379991e0
commit
1169c416b1
+1
-1
@@ -23,7 +23,7 @@ import nodomain.freeyourgadget.gadgetbridge.R;
|
|||||||
public class YawellR11Coordinator extends AbstractYawellRingCoordinator {
|
public class YawellR11Coordinator extends AbstractYawellRingCoordinator {
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("^R11_[0-9A-F]{4}$");
|
return Pattern.compile("^R11C?_[0-9A-F]{4}$");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+2
@@ -49,6 +49,8 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
|
|||||||
put("P8", DeviceType.WASPOS);
|
put("P8", DeviceType.WASPOS);
|
||||||
put("P8DFU", DeviceType.WASPOS);
|
put("P8DFU", DeviceType.WASPOS);
|
||||||
put("P80", DeviceType.COLMI_P80);
|
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()) {
|
for (Map.Entry<String, DeviceType> e : bluetoothNameToExpectedType.entrySet()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user