Skip to content

Commit

Permalink
Some visual indentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DancingQuanta committed Mar 11, 2018
1 parent 083e872 commit d2a5424
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions usbiss/spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def mode(self, val):
self._mode = val
self.configure()
else:
error = "The value of SPI mode, {}, is not between 0 and 3".format(
val
error = (
"The value of SPI mode, {}, is not between 0 and 3".format(val)
)
raise ValueError(error)

Expand Down Expand Up @@ -96,9 +96,10 @@ def iss_spi_divisor(self, sck):
raise ValueError('Non-integer SCK divisor.')

if not 1 <= divisor < 256:
error = ("The value of sck_divisor, {},"
"is not between 0 and 255".format(divisor)
)
error = (
"The value of sck_divisor, {}, "
"is not between 0 and 255".format(divisor)
)
raise ValueError(error)
return divisor

Expand Down Expand Up @@ -129,11 +130,11 @@ def xfer(self, data):
def xfer2(self, data):
return self.exchange(data)

def readbytes(self, len):
def readbytes(self, readLen):
"""
Read len bytes from SPI device.
Read readLen bytes from SPI device.
"""
dummybytes = [0] * len
dummybytes = [0] * readLen
return self.exchange(dummybytes)

def writebytes(self, data):
Expand Down

0 comments on commit d2a5424

Please sign in to comment.