mirror of
https://github.com/esphome/esphome.git
synced 2025-09-26 15:12:21 +01:00
fix
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user