mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Amazfit Cor: Support language switching on newer firmwares
I shamelessly assumed the firmware version (chose the version that was included in the same Mi Fit version when bip started to support the new command)
This commit is contained in:
parent
7cad1fe2d3
commit
aa143577f8
@ -4,6 +4,7 @@
|
|||||||
* Inital support for ZeTime
|
* Inital support for ZeTime
|
||||||
* Amazfit Bip/Cor: Rework firmware detection to cope with new version scheme
|
* Amazfit Bip/Cor: Rework firmware detection to cope with new version scheme
|
||||||
* Amazfit Bip: Support setting language to Russian
|
* Amazfit Bip: Support setting language to Russian
|
||||||
|
* Amazfit Cor: Support language switching on newer firmwares
|
||||||
* Mi Band 3: support setting language (english and spanish tested)
|
* Mi Band 3: support setting language (english and spanish tested)
|
||||||
* Mi Band 3: Fix pairing
|
* Mi Band 3: Fix pairing
|
||||||
* Mi Band 3: Send AQI to enable display of current temperature
|
* Mi Band 3: Send AQI to enable display of current temperature
|
||||||
|
@ -462,7 +462,9 @@ 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.MIBAND3 || (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) ||
|
||||||
|
(gbDevice.getType() == DeviceType.AMAZFITCOR && new Version(gbDevice.getFirmwareVersion()).compareTo(new Version("1.0.7.23")) >= 0)) {
|
||||||
return command_new;
|
return command_new;
|
||||||
} else {
|
} else {
|
||||||
return command_old;
|
return command_old;
|
||||||
|
Loading…
Reference in New Issue
Block a user