mirror of
https://github.com/esphome/esphome.git
synced 2025-09-26 15:12:21 +01:00
preen
This commit is contained in:
@@ -137,9 +137,6 @@ class USBUartComponent : public usb_host::USBClient {
|
|||||||
// Lock-free data transfer from USB task to main loop
|
// Lock-free data transfer from USB task to main loop
|
||||||
static constexpr int USB_DATA_QUEUE_SIZE = 32;
|
static constexpr int USB_DATA_QUEUE_SIZE = 32;
|
||||||
LockFreeQueue<UsbDataChunk, USB_DATA_QUEUE_SIZE> usb_data_queue_;
|
LockFreeQueue<UsbDataChunk, USB_DATA_QUEUE_SIZE> usb_data_queue_;
|
||||||
|
|
||||||
// Pool for allocating data chunks (uses EventPool pattern like BLE)
|
|
||||||
// MUST be same size as queue to guarantee push always succeeds after allocate
|
|
||||||
EventPool<UsbDataChunk, USB_DATA_QUEUE_SIZE> chunk_pool_;
|
EventPool<UsbDataChunk, USB_DATA_QUEUE_SIZE> chunk_pool_;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Reference in New Issue
Block a user