Skip to content

Commit 636106e

Browse files
authored
Merge pull request #26 from adafruit/pylint-fix
Fixed linting
2 parents a3724d9 + d9f3f20 commit 636106e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

adafruit_bluefruitspi.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ class BluefruitSPI:
111111
"""Helper for the Bluefruit LE SPI Friend"""
112112

113113
def __init__(
114-
self, spi, cs, irq, reset, debug=False, fifo_len=20
114+
self,
115+
spi,
116+
cs, # pylint: disable=invalid-name
117+
irq,
118+
reset,
119+
debug=False,
120+
fifo_len=20,
115121
): # pylint: disable=too-many-arguments
116122
self._irq = irq
117123
self._buf_tx = bytearray(20)
@@ -376,7 +382,7 @@ def read_packet(self): # pylint: disable=too-many-return-statements
376382
packet = self._buffer[0:plen]
377383

378384
self._buffer = self._buffer[plen:] # remove packet from buffer
379-
if sum([ord(x) for x in packet]) % 256 != 255: # check sum
385+
if sum(ord(x) for x in packet) % 256 != 255: # check sum
380386
return None
381387

382388
# OK packet's good!

0 commit comments

Comments
 (0)