mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02: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:
committed by
Andreas Shimokawa
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user