1
0
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:
rikka356 2022-01-13 05:47:36 +08:00
parent 8a54f5dd1c
commit 8e66ed4283
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {