Skip to content

Commit 16c2bc5

Browse files
authored
'debug=false' fails
remove 'debug=false' in decoder.decode_bits(pulses). It would crash the code as debug is not used.
1 parent a463aab commit 16c2bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Circuit_Playground_Express_IR_Treasure_Hunt/CPX_Hunter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# Try and decode them
3232
try:
3333
# Attempt to convert received pulses into numbers
34-
received_code = tuple(decoder.decode_bits(pulses, debug=False))
34+
received_code = tuple(decoder.decode_bits(pulses))
3535
except adafruit_irremote.IRNECRepeatException:
3636
# We got an unusual short code, probably a 'repeat' signal
3737
# print("NEC repeat!")

0 commit comments

Comments
 (0)