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:
parent
88da30fd53
commit
bb161aff59
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user