Skip to content

Commit aa5b78e

Browse files
committed
change timeout for slow sampling
1 parent affb0c8 commit aa5b78e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

USB/mcc-libusb/usb-1608FS.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,10 +732,7 @@ int usbAInScan_USB1608FS(libusb_device_handle *udev, uint8_t lowchannel, uint8_t
732732
}
733733

734734
if (*frequency < 150.) {
735-
arg.options |= AIN_TRANSFER_MODE;
736-
if (timeout < floor(1000./(*frequency))) {
737-
timeout = floor(1000./(*frequency)) + FS_DELAY;
738-
}
735+
timeout = floor(32*1000./(*frequency)) + FS_DELAY;
739736
}
740737

741738
*frequency = 1.0e7/(preload*(1<<arg.prescale));

0 commit comments

Comments
 (0)