1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 21:32:57 +01:00

Amazfit GTS2 mini: Fix device name as stated in #2152

This commit is contained in:
Andreas Shimokawa 2021-01-29 01:00:09 +01:00
parent 614d711226
commit 251aee8c74

View File

@ -44,7 +44,7 @@ public class AmazfitGTS2MiniCoordinator extends AmazfitGTS2Coordinator {
try { try {
BluetoothDevice device = candidate.getDevice(); BluetoothDevice device = candidate.getDevice();
String name = device.getName(); String name = device.getName();
if (name != null && name.equalsIgnoreCase("Amazfit GTS 2 Mini")) { if (name != null && name.equalsIgnoreCase("Amazfit GTS2 mini")) {
return DeviceType.AMAZFITGTS2_MINI; return DeviceType.AMAZFITGTS2_MINI;
} }
} catch (Exception ex) { } catch (Exception ex) {