From 1fb1c8520883a6eb3ad94cb84def160a004ca4f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Thu, 13 Mar 2025 10:02:36 +0100 Subject: [PATCH] Increase USB buffer timeout in VNA sweep --- Software/VNA_embedded/Application/VNA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Software/VNA_embedded/Application/VNA.cpp b/Software/VNA_embedded/Application/VNA.cpp index 4a390a3..de540b0 100644 --- a/Software/VNA_embedded/Application/VNA.cpp +++ b/Software/VNA_embedded/Application/VNA.cpp @@ -535,7 +535,7 @@ void VNA::SweepHalted() { // USB buffer could potentially overflow before next halted point, wait until more space is available. uint32_t start = HAL_GetTick(); while(usb_available_buffer() < reservedUSBbuffer) { - if(HAL_GetTick() - start > 100) { + if(HAL_GetTick() - start > 1000) { // still no buffer space after some time, something more serious must have gone wrong // -> abort sweep and return to idle usb_clear_buffer();