Explorar el Código

Merge pull request #550 from ZuluSCSI/dev_fix_usb_regression

RP2MCU: Fix USB console not connecting
Alex Perez hace 7 meses
padre
commit
47c5d2a30c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/ZuluSCSI_platform_RP2MCU/ZuluSCSI_platform.cpp

+ 1 - 1
lib/ZuluSCSI_platform_RP2MCU/ZuluSCSI_platform.cpp

@@ -665,7 +665,7 @@ static bool usb_serial_connected()
     if (platform_msc_lock_get()) return connected; // Avoid re-entrant USB events
 #endif
 
-    if (last_check_time == 0 || (uint32_t)(millis() - last_check_time) > 1000)
+    if (last_check_time == 0 || (uint32_t)(millis() - last_check_time) > 50)
     {
         connected = bool(Serial);
         last_check_time = millis();