1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-16 02:14:04 +02:00

Use Teclast H30 code for Teclast H10

Thanks @newfla for pointing that hout
Closes #867
This commit is contained in:
Andreas Shimokawa 2017-12-02 20:35:56 +01:00
parent 1ccc99c3bc
commit eb9d321b95

View File

@ -63,7 +63,7 @@ public class TeclastH30Coordinator extends AbstractDeviceCoordinator {
@Override
public DeviceType getSupportedType(GBDeviceCandidate candidate) {
String name = candidate.getDevice().getName();
if (name != null && name.startsWith("TECLAST_H30")) {
if (name != null && (name.startsWith("TECLAST_H30") || name.startsWith("TECLAST_H10"))) {
return DeviceType.TECLASTH30;
}
return DeviceType.UNKNOWN;