mirror of
https://github.com/esphome/esphome.git
synced 2025-11-15 22:35:46 +00:00
Add clarifying comment
This commit is contained in:
@@ -364,6 +364,7 @@ void USBUartTypeCdcAcm::on_disconnected() {
|
|||||||
usb_host_endpoint_flush(this->device_handle_, channel->cdc_dev_.notify_ep->bEndpointAddress);
|
usb_host_endpoint_flush(this->device_handle_, channel->cdc_dev_.notify_ep->bEndpointAddress);
|
||||||
}
|
}
|
||||||
usb_host_interface_release(this->handle_, this->device_handle_, channel->cdc_dev_.bulk_interface_number);
|
usb_host_interface_release(this->handle_, this->device_handle_, channel->cdc_dev_.bulk_interface_number);
|
||||||
|
// Reset the input and output started flags to their initial state to avoid the possibility of spurious restarts
|
||||||
channel->input_started_.store(true);
|
channel->input_started_.store(true);
|
||||||
channel->output_started_.store(true);
|
channel->output_started_.store(true);
|
||||||
channel->input_buffer_.clear();
|
channel->input_buffer_.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user