[usb_uart] Fix output chunk length truncated to 8 bits (#17480)

This commit is contained in:
Jonathan Swoboda
2026-07-13 09:19:23 +12:00
committed by Jesse Hills
parent 6c4640f4f1
commit 196b979df8
+1 -1
View File
@@ -160,7 +160,7 @@ void USBUartChannel::write_array(const uint8_t *data, size_t len) {
}
uint16_t chunk_len = std::min(len, UsbOutputChunk::MAX_CHUNK_SIZE);
memcpy(chunk->data, data, chunk_len);
chunk->length = static_cast<uint8_t>(chunk_len);
chunk->length = chunk_len;
// Push always succeeds: pool is sized to queue capacity (SIZE-1), so if
// allocate() returned non-null, the queue cannot be full.
this->output_queue_.push(chunk);