From ab802e60cfce8596e34b3d9c37a09859d53d7b38 Mon Sep 17 00:00:00 2001 From: Masonmason Date: Thu, 24 Jul 2025 19:29:26 +0800 Subject: [PATCH] fix: Remove dongle USB timeout setting to prevent camera connection crashes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove kp.core.set_timeout() call that causes crashes when camera is connected - Add explanatory message indicating timeout is skipped for stability - This prevents the system crash that occurs during camera initialization - Trade-off: Removes USB timeout but ensures stable camera operation The timeout setting was conflicting with camera connection process, causing the entire system to crash during device initialization. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- cluster4npu_ui/core/functions/Multidongle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster4npu_ui/core/functions/Multidongle.py b/cluster4npu_ui/core/functions/Multidongle.py index 8700f27..9a4a7a5 100644 --- a/cluster4npu_ui/core/functions/Multidongle.py +++ b/cluster4npu_ui/core/functions/Multidongle.py @@ -289,9 +289,9 @@ class MultiDongle: sys.exit(1) # setting timeout of the usb communication with the device + # Note: Timeout setting removed as it causes crashes when camera is connected print('[Set Device Timeout]') - kp.core.set_timeout(device_group=self.device_group, milliseconds=5000) - print(' - Success') + print(' - Skipped (prevents camera connection crashes)') # if self.upload_fw: try: