mirror of
https://github.com/esphome/esphome.git
synced 2025-10-04 19:03:47 +01:00
switch to != per discord review comemnts
This commit is contained in:
@@ -363,7 +363,7 @@ TransferRequest *USBClient::get_trq_() {
|
|||||||
// Find first available slot (bit = 0) and try to claim it atomically
|
// 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
|
// We use a while loop to allow retrying the same slot after CAS failure
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
while (i < MAX_REQUESTS) {
|
while (i != MAX_REQUESTS) {
|
||||||
if (mask & (1U << i)) {
|
if (mask & (1U << i)) {
|
||||||
// Slot is in use, move to next slot
|
// Slot is in use, move to next slot
|
||||||
i++;
|
i++;
|
||||||
|
Reference in New Issue
Block a user