1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 07:03:55 +00:00

Merge branch 'usb_memory_order_retry' into integration

This commit is contained in:
J. Nick Koston
2025-10-25 14:44:43 -07:00

View File

@@ -297,7 +297,8 @@ void USBUartComponent::start_input(USBUartChannel *channel) {
// On success, reset retry count and restart input immediately from USB task for performance
// The lock-free queue will handle backpressure
channel->input_retry_count_.store(0);
this->restart_input_(channel);
channel->input_started_.store(false);
this->start_input(channel);
};
// input_started_ already set to true by compare_exchange_strong above
auto result = this->transfer_in(ep->bEndpointAddress, callback, ep->wMaxPacketSize);