mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-12 02:45:49 +01:00
Amazfit Cor: Fix problem with firmware 1.0.6.27 where Cor was detected as Mi Band 2
The root cause of this problem is that starting from firmware 1.0.6.27 the bluetooth name was changed to "Amazfit Cor" from "Amazfit Band" This resulted in advanced features not working, including firmware flashing.
This commit is contained in:
parent
01a5d862a0
commit
d4ce333f14
@ -44,7 +44,7 @@ public class AmazfitCorCoordinator 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 Band")) {
|
if (name != null && (name.equalsIgnoreCase("Amazfit Band") || name.equalsIgnoreCase("Amazfit Cor"))) {
|
||||||
return DeviceType.AMAZFITCOR;
|
return DeviceType.AMAZFITCOR;
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
Loading…
Reference in New Issue
Block a user