Skip to content

Commit 974452e

Browse files
committed
Add explicit return to avoid implicit None return which doesn't
match the expression return within the loop.
1 parent 9bb1f95 commit 974452e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_irremote.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ def read_pulses(self, input_pulses, max_pulse=10000):
179179
else:
180180
return received
181181
received.append(pulse)
182+
return received
182183

183184
class GenericTransmit:
184185
"""Generic infrared transmit class that handles encoding."""

0 commit comments

Comments
 (0)