From aa660462365000392437a819e28256b285467093 Mon Sep 17 00:00:00 2001 From: Dan White Date: Sat, 16 Jun 2012 21:40:55 -0500 Subject: [PATCH] match mux and chain ordering --- python-lib/usbio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.25.1