mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 10:35:50 +01:00
CMF Watch Pro: Fix chunked packet handling
This commit is contained in:
parent
99e843606c
commit
02c2fe43de
@ -256,6 +256,7 @@ public class CmfCharacteristic {
|
|||||||
buffer = Objects.requireNonNull(chunkBuffers.get(cmd));
|
buffer = Objects.requireNonNull(chunkBuffers.get(cmd));
|
||||||
} else {
|
} else {
|
||||||
buffer = new ChunkBuffer();
|
buffer = new ChunkBuffer();
|
||||||
|
chunkBuffers.put(cmd, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chunkIndex != buffer.expectedChunk) {
|
if (chunkIndex != buffer.expectedChunk) {
|
||||||
|
Loading…
Reference in New Issue
Block a user