1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-26 23:22:21 +01:00
This commit is contained in:
J. Nick Koston
2025-09-23 22:02:03 -05:00
parent fb9334e5ba
commit 02b144c2e5
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ struct TransferRequest {
}; };
// Lightweight event types for queue // Lightweight event types for queue
enum EventType { enum EventType : uint8_t {
EVENT_DEVICE_NEW, EVENT_DEVICE_NEW,
EVENT_DEVICE_GONE, EVENT_DEVICE_GONE,
EVENT_TRANSFER_COMPLETE, EVENT_TRANSFER_COMPLETE,

View File

@@ -75,7 +75,7 @@ class RingBuffer {
struct UsbDataChunk { struct UsbDataChunk {
static constexpr size_t MAX_CHUNK_SIZE = 64; // USB packet size static constexpr size_t MAX_CHUNK_SIZE = 64; // USB packet size
uint8_t data[MAX_CHUNK_SIZE]; uint8_t data[MAX_CHUNK_SIZE];
size_t length; uint8_t length; // Max 64 bytes, so uint8_t is sufficient
USBUartChannel *channel; USBUartChannel *channel;
// Required for EventPool - reset to clean state // Required for EventPool - reset to clean state