From 0539dd22863cf43f51f1eb490ac2ee0edc24bab6 Mon Sep 17 00:00:00 2001 From: sbahling Date: Mon, 5 Nov 2018 22:02:24 +0100 Subject: index is a better name in this case --- tascam_fw_console/console.py | 4 ++-- 1 file 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 -- cgit v1.2.3