mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 05:16:51 +01:00
Add Support for Bip U series China Variant
This commit is contained in:
parent
8a54f5dd1c
commit
8e66ed4283
@ -48,7 +48,7 @@ public class AmazfitBipUCoordinator 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 Bip U"))) {
|
if (name != null && (name.equalsIgnoreCase("Amazfit Bip U")||name.equalsIgnoreCase("Amazfit Pop"))) {
|
||||||
return DeviceType.AMAZFITBIPU;
|
return DeviceType.AMAZFITBIPU;
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
@ -48,7 +48,7 @@ public class AmazfitBipUProCoordinator 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 Bip U Pro"))) {
|
if (name != null && (name.equalsIgnoreCase("Amazfit Bip U Pro")||name.equalsIgnoreCase("Amazfit Pop Pro"))) {
|
||||||
return DeviceType.AMAZFITBIPUPRO;
|
return DeviceType.AMAZFITBIPUPRO;
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
Loading…
Reference in New Issue
Block a user