1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 06:22:55 +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 { try {
BluetoothDevice device = candidate.getDevice(); BluetoothDevice device = candidate.getDevice();
String name = device.getName(); 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; return DeviceType.AMAZFITCOR;
} }
} catch (Exception ex) { } catch (Exception ex) {