Commit 4dd69829 authored by Christopher Wipf's avatar Christopher Wipf

Use stride -1 for nds1 only (it's not supported by nds2)

parent 611ccb9f
......@@ -31,12 +31,14 @@ def get_connection():
def iterate(channels, stride, start_end=None):
args = []
if start_end:
args += list(start_end)
args += [stride]
args += [channels]
with closing(get_connection()) as conn:
args = []
if start_end:
args += list(start_end)
if conn.get_protocol() == 1:
stride = -1
args += [stride]
args += [channels]
for bufs in conn.iterate(*args):
yield bufs
......@@ -86,7 +88,7 @@ class NDSThread(QThread):
self.start_end = None
# for "fast" online data at 16Hz
# FIXME: set explicitly
self.stride = -1
self.stride = 1
self._run_lock = QMutex()
self._running = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment