mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-24 00:00:47 +02: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