1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-14 07:43:48 +01:00

tweak comments

This commit is contained in:
J. Nick Koston
2025-10-11 06:24:35 -10:00
parent 2796cac972
commit ec71669bff

View File

@@ -428,8 +428,8 @@ static void transfer_callback(usb_transfer_t *xfer) {
trq->callback(trq->status);
}
// Release transfer slot immediately in USB task to prevent slot exhaustion
// This is critical for high-throughput transfers (e.g., USB UART at 115200 baud)
// Release transfer slot AFTER callback completes to prevent slot exhaustion
// The callback has finished accessing xfer->data_buffer, so it's safe to release
// The release_trq() uses thread-safe atomic operations
trq->client->release_trq(trq);
}