mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-28 19:45:50 +01:00
Add support for Watch X Plus with same MAC as Watch 9
This commit is contained in:
parent
f7e7cfaa0c
commit
8d7f170c70
@ -64,7 +64,8 @@ public class Watch9DeviceCoordinator extends AbstractDeviceCoordinator {
|
||||
if (candidate.supportsService(Watch9Constants.UUID_SERVICE_WATCH9)) {
|
||||
return DeviceType.WATCH9;
|
||||
// add support for Watch X non-plus (same MAC address)
|
||||
} else if ((macAddress.startsWith("1C:87:79")) && (!deviceName.equalsIgnoreCase("WATCH X"))) {
|
||||
// add support for Watch X Plus (same MAC address)
|
||||
} else if ((macAddress.startsWith("1C:87:79")) && ((!deviceName.equalsIgnoreCase("WATCH X")) || (!deviceName.equalsIgnoreCase("WATCH XPLUS")))) {
|
||||
return DeviceType.WATCH9;
|
||||
} else if (deviceName.equals("WATCH 9")) {
|
||||
return DeviceType.WATCH9;
|
||||
|
Loading…
Reference in New Issue
Block a user