1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-07 06:01:34 +02:00

Zepp OS: Fix health settings on older Zepp OS versions

This commit is contained in:
José Rebelo 2023-09-17 23:17:22 +01:00
parent 3f518364f2
commit ee3ce06899

View File

@ -169,7 +169,7 @@ public class ZeppOsConfigService extends AbstractZeppOsService {
if (configGroup.getVersion() != version) {
// Special case for HEALTH, where we actually support version 1 as well
// 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);
return;
}