mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-01-08 09:40:26 +01:00
Increase USB buffer timeout in VNA sweep
This commit is contained in:
parent
91e4a87dc0
commit
1fb1c85208
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue