|
@@ -1058,8 +1058,8 @@ void SteamPuckController::task()
|
|
|
last43[s] = millis();
|
|
last43[s] = millis();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- // Reset edge state for slots that are no longer used/ready (so a re-bond sees a fresh edge).
|
|
|
|
|
|
|
+ // Reset edge state only when the slot or USB device goes away; ready() is transiently false while busy.
|
|
|
for (int s = 0; s < NSLOT; s++)
|
|
for (int s = 0; s < NSLOT; s++)
|
|
|
- if (!g_slot[s].used || !hid[s].ready())
|
|
|
|
|
|
|
+ if (!g_slot[s].used || !USBDevice.mounted())
|
|
|
usbConn[s] = false;
|
|
usbConn[s] = false;
|
|
|
}
|
|
}
|