mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-18 09:19:34 +02:00
Use Teclast H30 code for Teclast H10
Thanks @newfla for pointing that hout Closes #867
This commit is contained in:
parent
1ccc99c3bc
commit
eb9d321b95
@ -63,7 +63,7 @@ public class TeclastH30Coordinator extends AbstractDeviceCoordinator {
|
|||||||
@Override
|
@Override
|
||||||
public DeviceType getSupportedType(GBDeviceCandidate candidate) {
|
public DeviceType getSupportedType(GBDeviceCandidate candidate) {
|
||||||
String name = candidate.getDevice().getName();
|
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.TECLASTH30;
|
||||||
}
|
}
|
||||||
return DeviceType.UNKNOWN;
|
return DeviceType.UNKNOWN;
|
||||||
|
Loading…
Reference in New Issue
Block a user