From b8bbe91e675d333985650f1ff162ecd40d7936f3 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 28 Sep 2025 21:33:35 -0500 Subject: [PATCH] switch to != per discord review comemnts --- esphome/components/usb_host/usb_host_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/usb_host/usb_host_client.cpp b/esphome/components/usb_host/usb_host_client.cpp index 082575e364..b26385a8ef 100644 --- a/esphome/components/usb_host/usb_host_client.cpp +++ b/esphome/components/usb_host/usb_host_client.cpp @@ -363,7 +363,7 @@ TransferRequest *USBClient::get_trq_() { // Find first available slot (bit = 0) and try to claim it atomically // We use a while loop to allow retrying the same slot after CAS failure size_t i = 0; - while (i < MAX_REQUESTS) { + while (i != MAX_REQUESTS) { if (mask & (1U << i)) { // Slot is in use, move to next slot i++;