mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-26 16:41:43 +01:00
Weather fix
This commit is contained in:
parent
0b64408b33
commit
14eaba858c
@ -363,6 +363,7 @@ public class Weather {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static class Response extends HuaweiPacket {
|
public static class Response extends HuaweiPacket {
|
||||||
|
public int successCode = -1;
|
||||||
public boolean success = false;
|
public boolean success = false;
|
||||||
|
|
||||||
public Response(ParamsProvider paramsProvider) {
|
public Response(ParamsProvider paramsProvider) {
|
||||||
@ -373,7 +374,8 @@ public class Weather {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void parseTlv() throws ParseException {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user