mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Weather fix
This commit is contained in:
+3
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user