mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 11:17:33 +01:00
Mi Band 8: Fix chunked receive decryption
This commit is contained in:
parent
57c7a083aa
commit
4662da3b82
@ -148,6 +148,9 @@ public class XiaomiCharacteristic {
|
||||
} else {
|
||||
handler.handle(chunkBuffer.toByteArray());
|
||||
}
|
||||
|
||||
currentChunk = 0;
|
||||
chunkBuffer.reset();
|
||||
}
|
||||
} else {
|
||||
// Not a chunk / single-packet
|
||||
@ -162,6 +165,8 @@ public class XiaomiCharacteristic {
|
||||
return;
|
||||
}
|
||||
numChunks = buf.getShort();
|
||||
currentChunk = 0;
|
||||
chunkBuffer.reset();
|
||||
LOG.debug("Got chunked start request for {} chunks", numChunks);
|
||||
sendChunkStartAck();
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user