Skip to content

Commit

Permalink
Merge pull request #26 from tekktrik/main
Browse files Browse the repository at this point in the history
Fix pylint issues
  • Loading branch information
dhalbert authored May 11, 2023
2 parents afa2872 + 71cb62e commit 352513a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_bitbangio.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def _read(self, address: int, length: int) -> bytearray:
raise RuntimeError(f"Device not responding at 0x{address:02X}")
buffer = bytearray(length)
for byte_position in range(length):
buffer[byte_position] = self._read_byte(ack=(byte_position != length - 1))
buffer[byte_position] = self._read_byte(ack=byte_position != length - 1)
self._stop()
return buffer

Expand Down

0 comments on commit 352513a

Please sign in to comment.