code cleanup

This commit is contained in:
2025-08-23 21:13:11 -04:00
parent a74808f026
commit ffeb74686c
5 changed files with 10 additions and 20 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ void usb_device_main(void) {
break;
case DEVICE_RESTART:
if (tud_disconnect()) {
sleep_ms(100);
sleep_ms(10);
if (tud_connect()) {
if ( host_state == HOST_INACTIVE ) {
device_state = DEVICE_INACTIVE;