This commit is contained in:
zhoujie 2026-03-14 21:18:22 +08:00
parent c4c95b2a3b
commit 2fa3bbf647

View File

@ -662,7 +662,7 @@ TcpLogic_BuildAndSendTemperatureFrame(TcpTxBuffer_t *io_buffer,
We can't easily prepend headers to later fragments inline. */ We can't easily prepend headers to later fragments inline. */
uint32_t offset = 0; uint32_t offset = 0;
uint8_t frag_buf[HEADER_SIZE + MAX_FRAGMENT_PAYLOAD + CRC_SIZE]; static uint8_t frag_buf[HEADER_SIZE + MAX_FRAGMENT_PAYLOAD + CRC_SIZE];
uint32_t frag_count = uint32_t frag_count =
(total_tlv_len + MAX_FRAGMENT_PAYLOAD - 1) / MAX_FRAGMENT_PAYLOAD; (total_tlv_len + MAX_FRAGMENT_PAYLOAD - 1) / MAX_FRAGMENT_PAYLOAD;