1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-24 07:38:45 +02:00

Amazfit Cor: Also recognize "Amazfit Band 2" as Cor

This commit is contained in:
Andreas Shimokawa 2019-05-02 22:26:20 +02:00
parent 88da30fd53
commit bb161aff59

View File

@ -48,7 +48,8 @@ public class AmazfitCorCoordinator extends HuamiCoordinator {
try {
BluetoothDevice device = candidate.getDevice();
String name = device.getName();
if (name != null && (name.equalsIgnoreCase("Amazfit Band") || name.equalsIgnoreCase("Amazfit Cor") || name.equalsIgnoreCase("Amazfit Cor 2"))) {
if (name != null && (name.equalsIgnoreCase("Amazfit Band") || name.equalsIgnoreCase("Amazfit Cor")
|| name.equalsIgnoreCase("Amazfit Band 2") || name.equalsIgnoreCase("Amazfit Cor 2"))) {
return DeviceType.AMAZFITCOR;
}
} catch (Exception ex) {