Skip to content

Commit 82e61d5

Browse files
committed
Linted.
1 parent 517d4af commit 82e61d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_bluefruitspi.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ def _cmd(self, cmd): # pylint: disable=too-many-branches
120120
# Last or sole packet
121121
more = 0
122122
plen = len(cmd) - pos
123-
if plen > 16:
124-
plen = 16
123+
plen = min(plen, 16)
125124
# Note the 'more' value in bit 8 of the packet len
126125
struct.pack_into(
127126
"<BHB16s",

0 commit comments

Comments
 (0)