소스 검색

Merge pull request #550 from ZuluSCSI/dev_fix_usb_regression

RP2MCU: Fix USB console not connecting
Alex Perez 7 달 전
부모
커밋
47c5d2a30c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();