From 5f17a95f2ebfab922744e1086a4d73a02df3f4b9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 23 Sep 2025 22:37:02 -0500 Subject: [PATCH] lock free --- esphome/components/usb_uart/usb_uart.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/esphome/components/usb_uart/usb_uart.h b/esphome/components/usb_uart/usb_uart.h index 21e2d34439..1c4fb34fed 100644 --- a/esphome/components/usb_uart/usb_uart.h +++ b/esphome/components/usb_uart/usb_uart.h @@ -79,11 +79,8 @@ struct UsbDataChunk { uint8_t length; // Max 64 bytes, so uint8_t is sufficient USBUartChannel *channel; - // Required for EventPool - reset to clean state - void release() { - this->length = 0; - this->channel = nullptr; - } + // Required for EventPool - no cleanup needed for POD types + void release() {} }; class USBUartChannel : public uart::UARTComponent, public Parented {