1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-20 12:00:51 +02:00

Weather fix

This commit is contained in:
Martin.JM 2024-02-03 17:58:23 +01:00 committed by José Rebelo
parent 0b64408b33
commit 14eaba858c

View File

@ -363,6 +363,7 @@ public class Weather {
}
public static class Response extends HuaweiPacket {
public int successCode = -1;
public boolean success = false;
public Response(ParamsProvider paramsProvider) {
@ -373,7 +374,8 @@ public class Weather {
@Override
public void parseTlv() throws ParseException {
this.success = this.tlv.getInteger(0x7f) == 0x000186A0;
this.successCode = this.tlv.getInteger(0x7f);
this.success = this.successCode == 0x000186A0 || this.successCode == 0x000186A3;
}
}
}