code cleanup

This commit is contained in:
2025-08-23 21:13:11 -04:00
parent a74808f026
commit c6ac21a15b
6 changed files with 19 additions and 33 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;