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

This commit is contained in:
Jonathan Swoboda
2026-07-09 15:04:42 -04:00
committed by GitHub
parent 9327d011fc
commit 9f21fd0b55
+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);