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:
parent
fa0fd250cf
commit
04018955c1
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user