mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 05:16:51 +01:00
Zepp OS: Fix health settings on older Zepp OS versions
This commit is contained in:
parent
3f518364f2
commit
ee3ce06899
@ -169,7 +169,7 @@ public class ZeppOsConfigService extends AbstractZeppOsService {
|
|||||||
if (configGroup.getVersion() != version) {
|
if (configGroup.getVersion() != version) {
|
||||||
// Special case for HEALTH, where we actually support version 1 as well
|
// Special case for HEALTH, where we actually support version 1 as well
|
||||||
// TODO: Support multiple versions in a cleaner way...
|
// TODO: Support multiple versions in a cleaner way...
|
||||||
if (!(configGroup == ConfigGroup.HEALTH && configGroup.getVersion() == 1)) {
|
if (!(configGroup == ConfigGroup.HEALTH && version == 1)) {
|
||||||
LOG.warn("Unexpected version {} for {}", String.format("0x%02x", version), configGroup);
|
LOG.warn("Unexpected version {} for {}", String.format("0x%02x", version), configGroup);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user