Skip to content

Commit b6efe6d

Browse files
committed
Return decode_bits() code rather than the message containing the code. Brings patch into compliance with published API.
1 parent d54a4ad commit b6efe6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_irremote.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +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
268+
return result.code
269269

270270
def _read_pulses_non_blocking(
271271
self, input_pulses, max_pulse=10000, pulse_window=0.10

0 commit comments

Comments
 (0)