Skip to content

Commit

Permalink
Merge pull request adafruit#51 from lstein/decode-bug-fix
Browse files Browse the repository at this point in the history
Fix adafruit_irremote.GenericDecode's decode() method to return decoded result
  • Loading branch information
dhalbert authored Feb 18, 2022
2 parents 6f101fe + b6efe6d commit 9771c93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adafruit_irremote.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ def decode_bits(self, pulses): # pylint: disable=no-self-use
raise IRNECRepeatException()
if isinstance(result, UnparseableIRMessage):
raise IRDecodeException("10 pulses minimum")
return result.code

def _read_pulses_non_blocking(
self, input_pulses, max_pulse=10000, pulse_window=0.10
Expand Down

0 comments on commit 9771c93

Please sign in to comment.