mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 18:15:49 +01:00
Enable No1F1 support for a Chinese clone
This cheap Chinese dummy-smart-watch apparently uses the same chip/protocol, but it reports with a different name, so we need to add it to the hardcoded name-based detection.
This commit is contained in:
parent
6f86d70ca1
commit
657fc16f80
@ -59,7 +59,7 @@ public class No1F1Coordinator extends AbstractDeviceCoordinator {
|
||||
@Override
|
||||
public DeviceType getSupportedType(GBDeviceCandidate candidate) {
|
||||
String name = candidate.getDevice().getName();
|
||||
if (name != null && name.startsWith("X-RUN")) {
|
||||
if (name != null && (name.startsWith("X-RUN") || name.startsWith("MH30"))) {
|
||||
return DeviceType.NO1F1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user