s (#4070)
This commit is contained in:
parent
a7673066c3
commit
f729a1de27
|
@ -37,6 +37,8 @@ void TsChannelBase::copyAndWriteSmallCrcPacket(uint8_t responseCode, const uint8
|
||||||
}
|
}
|
||||||
|
|
||||||
void TsChannelBase::crcAndWriteBuffer(uint8_t responseCode, size_t size) {
|
void TsChannelBase::crcAndWriteBuffer(uint8_t responseCode, size_t size) {
|
||||||
|
efiAssertVoid(OBD_PCM_Processor_Fault, size <= BLOCKING_FACTOR + 7, "crcAndWriteBuffer tried to transmit too large a packet")
|
||||||
|
|
||||||
auto scratchBuffer = this->scratchBuffer;
|
auto scratchBuffer = this->scratchBuffer;
|
||||||
// Index 0/1 = packet size (big endian)
|
// Index 0/1 = packet size (big endian)
|
||||||
*(uint16_t*)scratchBuffer = SWAP_UINT16(size + 1);
|
*(uint16_t*)scratchBuffer = SWAP_UINT16(size + 1);
|
||||||
|
|
Loading…
Reference in New Issue