We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08d7afc + 846dff5 commit 4d4cd86Copy full SHA for 4d4cd86
picoscope/ps4000a.py
@@ -280,11 +280,11 @@ def _lowLevelEnumerateUnits(self):
280
m = self.lib.ps4000aEnumerateUnits(byref(count), byref(serials),
281
byref(serialLth))
282
self.checkResult(m)
283
- # a serial number is rouhgly 8 characters
+ # a serial number is rouhgly 10 characters
284
# an extra character for the comma
285
# and an extra one for the space after the comma?
286
# the extra two also work for the null termination
287
- serialLth = c_int16(count.value * (8 + 2))
+ serialLth = c_int16(count.value * (10 + 2))
288
serials = create_string_buffer(serialLth.value + 1)
289
290
m = self.lib.ps4000aEnumerateUnits(byref(count), serials,
0 commit comments