mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Mijia LYWSD02: Add support for LYWSD02MMC
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ public class MijiaLywsd02Coordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
@Override
|
@Override
|
||||||
public DeviceType getSupportedType(GBDeviceCandidate candidate) {
|
public DeviceType getSupportedType(GBDeviceCandidate candidate) {
|
||||||
String name = candidate.getName();
|
String name = candidate.getName();
|
||||||
if (name != null && name.equals("LYWSD02")) {
|
if (name != null && (name.equals("LYWSD02") || name.equals("LYWSD02MMC"))) {
|
||||||
return DeviceType.MIJIA_LYWSD02;
|
return DeviceType.MIJIA_LYWSD02;
|
||||||
}
|
}
|
||||||
return DeviceType.UNKNOWN;
|
return DeviceType.UNKNOWN;
|
||||||
|
|||||||
Reference in New Issue
Block a user