Skip to content

Commit

Permalink
Add missing self.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Jun 6, 2017
1 parent 0b18ae6 commit 122609f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_register/i2c_bits.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __get__(self, obj, objtype=None):
with obj.i2c_device as i2c:
i2c.write(self.buffer, end=1, stop=False)
i2c.read_into(self.buffer, start=1)
return (self.buffer[1] & self.bit_mask) >> lowest_bit
return (self.buffer[1] & self.bit_mask) >> self.lowest_bit

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

0 comments on commit 122609f

Please sign in to comment.