From: Dan White Date: Sun, 17 Jun 2012 02:40:55 +0000 (-0500) Subject: match mux and chain ordering X-Git-Tag: calibrations~50 X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=aa660462365000392437a819e28256b285467093;p=430.git match mux and chain ordering --- diff --git a/python-lib/usbio.py b/python-lib/usbio.py index f83149f..4c3b83f 100644 --- a/python-lib/usbio.py +++ b/python-lib/usbio.py @@ -511,8 +511,8 @@ class Chain(object): def bytes(self): """Return the control data as a byte sequence in MSB..LSB order.""" data = [] - # TODO: check ordering WRT Chain0Ctl mux - for h in self.h: + # reversed() matches indexing to mux selection + for h in reversed(self.h): data.extend(h.bytes) return tuple(data)