mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-05 14:06:31 +02: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) {
|
||||
// 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user