Public bug reported:
The example file examples/test.py contains an init loop which iterates
through all 8 inputs but instead initializes input number one 8 times.
diff -u examples/test.py_orig examples/test.py
--- examples/test.py_orig 2015-07-24 15:01:19.915814373 +0200
+++ examples/test.py 2015-07-24 15:01:31.608553642 +0200
@@ -33,7 +33,7 @@
r = usbtc08.usb_tc08_set_channel(handle, 0, 'C')
for i in xrange(1,9):
- r &= usbtc08.usb_tc08_set_channel(handle, 1, 'J')
+ r &= usbtc08.usb_tc08_set_channel(handle, i, 'J')
if not r:
print >>sys.stderr, "ERROR: failed to configure channels"
** Affects: usbtc08-python (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1477989
Title:
Logical error in example file
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/usbtc08-python/+bug/1477989/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs