mirror of
https://github.com/esphome/esphome.git
synced 2025-09-26 23:22:21 +01:00
fix
This commit is contained in:
@@ -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,
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user