diff options
| author | sbahling <sbahling@mudgum.net> | 2018-11-05 22:02:24 +0100 |
|---|---|---|
| committer | sbahling <sbahling@mudgum.net> | 2018-11-05 22:02:24 +0100 |
| commit | 0539dd22863cf43f51f1eb490ac2ee0edc24bab6 (patch) | |
| tree | d99f85867e4ed9593bc532f0af913c28df63a667 | |
| parent | 38457f40da34c2c20bed61d14ac8163904c0d303 (diff) | |
| download | tascam-fw-osc-0539dd22863cf43f51f1eb490ac2ee0edc24bab6.tar.gz tascam-fw-osc-0539dd22863cf43f51f1eb490ac2ee0edc24bab6.tar.xz tascam-fw-osc-0539dd22863cf43f51f1eb490ac2ee0edc24bab6.zip | |
index is a better name in this case
| -rw-r--r-- | tascam_fw_console/console.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tascam_fw_console/console.py b/tascam_fw_console/console.py index a9d38f8..e13615d 100644 --- a/tascam_fw_console/console.py +++ b/tascam_fw_console/console.py @@ -47,8 +47,8 @@ class ConsoleStatus(): def __init__(self, quadlets): self.quadlets = quadlets - def field(self, quadlet, first_bit=0, last_bit=32): - bits = self.quadlets[quadlet] + def field(self, index, first_bit=0, last_bit=32): + bits = self.quadlets[index] # reverse the bit order before slicing so the index '0' is the LSB # and reverse back before converting to int |
