Skip to content

Commit c6acddb

Browse files
committed
pylint: disable added
1 parent 90bf153 commit c6acddb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_is31fl3731.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,10 @@ def audio_play(self, sample_rate, audio_gain=0,
256256
def blink(self, rate=None):
257257
"""Updates the blink register
258258
"""
259+
# pylint: disable=no-else-return
259260
if rate is None:
260261
return (self._register(_CONFIG_BANK, _BLINK_REGISTER) & 0x07) * 270
261-
if rate == 0:
262+
elif rate == 0:
262263
self._register(_CONFIG_BANK, _BLINK_REGISTER, 0x00)
263264
return None
264265
rate //= 270

0 commit comments

Comments
 (0)