docs
This commit is contained in:
parent
13fd96165d
commit
6241b696f2
|
@ -89,9 +89,10 @@ void TsChannelBase::writeCrcPacket(uint8_t responseCode, const uint8_t* buf, siz
|
|||
}
|
||||
|
||||
if (size <= BLOCKING_FACTOR + 7) {
|
||||
// small packets use small packet optimization
|
||||
// for small packets we use a buffer for CRC calculation
|
||||
writeCrcPacketSmall(responseCode, buf, size);
|
||||
} else {
|
||||
// for larger packets we do not use a buffer for CRC calculation meaning data is now allowed to modify while pending
|
||||
writeCrcPacketLarge(responseCode, buf, size);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ public class IncomingDataBuffer {
|
|||
if (packetSize < 0)
|
||||
return null;
|
||||
if (!allowLongResponse && packetSize > Math.max(Fields.BLOCKING_FACTOR, Fields.TS_OUTPUT_SIZE) + 10)
|
||||
throw new IllegalArgumentException(packetSize + " packet while not allowLongResponse");
|
||||
throw new IllegalArgumentException(packetSize + " packet while not allowLongResponse"); // this is about CRC calculation and mutable buffers on firmware side
|
||||
|
||||
isTimeout = waitForBytes(loggingPrefix + msg + " body", start, packetSize + 4);
|
||||
if (isTimeout)
|
||||
|
|
Loading…
Reference in New Issue