mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-04 09:17:29 +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 {
|
||||
BluetoothDevice device = candidate.getDevice();
|
||||
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;
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
|
@ -48,7 +48,7 @@ public class AmazfitBipUProCoordinator extends HuamiCoordinator {
|
||||
try {
|
||||
BluetoothDevice device = candidate.getDevice();
|
||||
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;
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user