1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-28 11:35:48 +01:00

Mi Band 3: allow setting language (english and spanish work)

This commit is contained in:
Andreas Shimokawa 2018-07-04 23:32:35 +02:00
parent a3e22d573f
commit 6e34d313c7

View File

@ -454,7 +454,7 @@ public class AmazfitBipSupport extends MiBand2Support {
builder.add(new ConditionalWriteAction(getCharacteristic(MiBand2Service.UUID_CHARACTERISTIC_3_CONFIGURATION)) {
@Override
protected byte[] checkCondition() {
if (gbDevice.getType() == DeviceType.AMAZFITBIP && new Version(gbDevice.getFirmwareVersion()).compareTo(new Version("0.1.0.77")) >= 0) {
if (gbDevice.getType() == DeviceType.MIBAND3 || (gbDevice.getType() == DeviceType.AMAZFITBIP && new Version(gbDevice.getFirmwareVersion()).compareTo(new Version("0.1.0.77")) >= 0)) {
return command_new;
} else {
return command_old;