summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tascam_fw_console/console.py4
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