mirror of
https://github.com/esphome/esphome.git
synced 2025-10-14 15:53:48 +01:00
tweak comments
This commit is contained in:
@@ -429,6 +429,7 @@ static void transfer_callback(usb_transfer_t *xfer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Release transfer slot AFTER callback completes to prevent slot exhaustion
|
// Release transfer slot AFTER callback completes to prevent slot exhaustion
|
||||||
|
// This is critical for high-throughput transfers (e.g., USB UART at 115200 baud)
|
||||||
// The callback has finished accessing xfer->data_buffer, so it's safe to release
|
// The callback has finished accessing xfer->data_buffer, so it's safe to release
|
||||||
// The release_trq() uses thread-safe atomic operations
|
// The release_trq() uses thread-safe atomic operations
|
||||||
trq->client->release_trq(trq);
|
trq->client->release_trq(trq);
|
||||||
|
Reference in New Issue
Block a user