Skip to content

Commit

Permalink
Return decode_bits() code rather than the message containing the code…
Browse files Browse the repository at this point in the history
…. Brings patch into compliance with published API.
  • Loading branch information
lstein committed Feb 16, 2022
1 parent d54a4ad commit b6efe6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_irremote.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +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
return result.code

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

0 comments on commit b6efe6d

Please sign in to comment.