From 6403c6ee64fea4a0392228eb4f57458e41bf4f86 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 23 Sep 2025 22:45:30 -0500 Subject: [PATCH] preen --- esphome/components/usb_host/usb_host.h | 1 - esphome/components/usb_host/usb_host_client.cpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/esphome/components/usb_host/usb_host.h b/esphome/components/usb_host/usb_host.h index 525457fd99..afd76595db 100644 --- a/esphome/components/usb_host/usb_host.h +++ b/esphome/components/usb_host/usb_host.h @@ -58,7 +58,6 @@ struct TransferRequest { USBClient *client; }; -// Lightweight event types for queue enum EventType : uint8_t { EVENT_DEVICE_NEW, EVENT_DEVICE_GONE, diff --git a/esphome/components/usb_host/usb_host_client.cpp b/esphome/components/usb_host/usb_host_client.cpp index caad490124..177a90eb52 100644 --- a/esphome/components/usb_host/usb_host_client.cpp +++ b/esphome/components/usb_host/usb_host_client.cpp @@ -211,8 +211,6 @@ void USBClient::usb_task_fn(void *arg) { } void USBClient::usb_task_loop() { - ESP_LOGI(TAG, "USB task started on core %d", xPortGetCoreID()); - while (true) { usb_host_client_handle_events(this->handle_, pdMS_TO_TICKS(10)); } @@ -232,7 +230,6 @@ void USBClient::loop() { case EVENT_TRANSFER_COMPLETE: case EVENT_CONTROL_COMPLETE: { auto *trq = event->data.transfer.trq; - // Callback was already executed in USB task, just cleanup this->release_trq(trq); break; }