Skip to content

Commit 9771c93

Browse files
authored
Merge pull request #51 from lstein/decode-bug-fix
Fix adafruit_irremote.GenericDecode's decode() method to return decoded result
2 parents 6f101fe + b6efe6d commit 9771c93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_irremote.py

+1
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ def decode_bits(self, pulses): # pylint: disable=no-self-use
265265
raise IRNECRepeatException()
266266
if isinstance(result, UnparseableIRMessage):
267267
raise IRDecodeException("10 pulses minimum")
268+
return result.code
268269

269270
def _read_pulses_non_blocking(
270271
self, input_pulses, max_pulse=10000, pulse_window=0.10

0 commit comments

Comments
 (0)