Skip to content

Commit 122609f

Browse files
authored
Add missing self.
1 parent 0b18ae6 commit 122609f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_register/i2c_bits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __get__(self, obj, objtype=None):
4646
with obj.i2c_device as i2c:
4747
i2c.write(self.buffer, end=1, stop=False)
4848
i2c.read_into(self.buffer, start=1)
49-
return (self.buffer[1] & self.bit_mask) >> lowest_bit
49+
return (self.buffer[1] & self.bit_mask) >> self.lowest_bit
5050

5151
def __set__(self, obj, value):
5252
# Shift the value to the appropriate spot and set all bits that aren't

0 commit comments

Comments
 (0)