1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-28 19:45:50 +01:00

Try to enable Amazfit Cor 2 support but just using Amazfit Cor code.

Related to #1500
This commit is contained in:
Andreas Shimokawa 2019-05-01 19:51:32 +02:00
parent f01c9414f5
commit 86270c0592

View File

@ -48,7 +48,7 @@ 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"))) {
if (name != null && (name.equalsIgnoreCase("Amazfit Band") || name.equalsIgnoreCase("Amazfit Cor") || name.equalsIgnoreCase("Amazfit Cor 2"))) {
return DeviceType.AMAZFITCOR;
}
} catch (Exception ex) {