1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-26 15:12:21 +01:00
This commit is contained in:
J. Nick Koston
2025-09-23 21:59:38 -05:00
parent d5ad9dc0fb
commit fb9334e5ba

View File

@@ -188,9 +188,7 @@ void USBUartComponent::loop() {
#endif
// Push data to ring buffer (now safe in main loop)
for (size_t i = 0; i < chunk->length; i++) {
channel->input_buffer_.push(chunk->data[i]);
}
channel->input_buffer_.push(chunk->data, chunk->length);
// Return chunk to pool for reuse
this->chunk_pool_.release(chunk);