1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-02-17 12:56:48 +01:00

Mi Band HRX: support older firmwares where the Band was named "Mi Band 2i"

This commit is contained in:
Andreas Shimokawa 2018-01-14 16:34:40 +01:00
parent fa0fd250cf
commit 04018955c1

View File

@ -44,7 +44,7 @@ public class MiBand2HRXCoordinator extends HuamiCoordinator {
try {
BluetoothDevice device = candidate.getDevice();
String name = device.getName();
if (name != null && name.equalsIgnoreCase("Mi Band HRX")) {
if (name != null && (name.equalsIgnoreCase("Mi Band HRX") || name.equalsIgnoreCase("Mi Band 2i"))) {
return DeviceType.MIBAND2;
}
} catch (Exception ex) {