mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-16 04:37:33 +01:00
Mi Band 3: allow setting language (english and spanish work)
This commit is contained in:
parent
a3e22d573f
commit
6e34d313c7
@ -454,7 +454,7 @@ public class AmazfitBipSupport extends MiBand2Support {
|
|||||||
builder.add(new ConditionalWriteAction(getCharacteristic(MiBand2Service.UUID_CHARACTERISTIC_3_CONFIGURATION)) {
|
builder.add(new ConditionalWriteAction(getCharacteristic(MiBand2Service.UUID_CHARACTERISTIC_3_CONFIGURATION)) {
|
||||||
@Override
|
@Override
|
||||||
protected byte[] checkCondition() {
|
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;
|
return command_new;
|
||||||
} else {
|
} else {
|
||||||
return command_old;
|
return command_old;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user