mirror of
https://github.com/esphome/esphome.git
synced 2025-09-26 23:22:21 +01:00
fix
This commit is contained in:
@@ -188,9 +188,7 @@ void USBUartComponent::loop() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Push data to ring buffer (now safe in main loop)
|
// 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, chunk->length);
|
||||||
channel->input_buffer_.push(chunk->data[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Return chunk to pool for reuse
|
// Return chunk to pool for reuse
|
||||||
this->chunk_pool_.release(chunk);
|
this->chunk_pool_.release(chunk);
|
||||||
|
Reference in New Issue
Block a user