/*isEndOfPacket*/
This commit is contained in:
parent
edd08db491
commit
d4d2aaea05
|
@ -69,15 +69,15 @@ void TsChannelBase::writeCrcPacketLarge(uint8_t responseCode, const uint8_t* buf
|
|||
*(uint32_t*)crcBuffer = SWAP_UINT32(crc);
|
||||
|
||||
// Write header
|
||||
write(headerBuffer, sizeof(headerBuffer), false);
|
||||
write(headerBuffer, sizeof(headerBuffer), /*isEndOfPacket*/false);
|
||||
|
||||
// If data, write that
|
||||
if (size) {
|
||||
write(buf, size, false);
|
||||
write(buf, size, /*isEndOfPacket*/false);
|
||||
}
|
||||
|
||||
// Lastly the CRC footer
|
||||
write(crcBuffer, sizeof(crcBuffer), true);
|
||||
write(crcBuffer, sizeof(crcBuffer), /*isEndOfPacket*/true);
|
||||
flush();
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ void SerialTsChannel::stop() {
|
|||
sdStop(m_driver);
|
||||
}
|
||||
|
||||
void SerialTsChannel::write(const uint8_t* buffer, size_t size, bool) {
|
||||
void SerialTsChannel::write(const uint8_t* buffer, size_t size, bool /*isEndOfPacket*/) {
|
||||
chnWriteTimeout(m_driver, buffer, size, BINARY_IO_TIMEOUT);
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
return is_usb_serial_ready();
|
||||
}
|
||||
|
||||
void write(const uint8_t* buffer, size_t size, bool) override {
|
||||
void write(const uint8_t* buffer, size_t size, bool /*isEndOfPacket*/) override {
|
||||
chnWriteTimeout(m_channel, buffer, size, BINARY_IO_TIMEOUT);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue