diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/Huami2021ChunkedDecoder.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/Huami2021ChunkedDecoder.java index 3e9ba61b7..b0bd85697 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/Huami2021ChunkedDecoder.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/Huami2021ChunkedDecoder.java @@ -115,7 +115,7 @@ public class Huami2021ChunkedDecoder { } } try { - huami2021Handler.handle2021Payload(currentType, buf); + huami2021Handler.handle2021Payload((short) currentType, buf); } catch (final Exception e) { LOG.error("Failed to handle payload", e); }