From: Peter Hinch Date: Fri, 20 Mar 2020 17:32:05 +0000 (+0000) Subject: Add MCE. Fix bug with RC5X. X-Git-Url: https://vault307.fbx.one/gitweb/micorpython_ir.git/commitdiff_plain/9bcc511c45d4122dd615a23002c30c13415896ad Add MCE. Fix bug with RC5X. --- diff --git a/ir_rx/mce.py b/ir_rx/mce.py index 218c859..c3e3849 100644 --- a/ir_rx/mce.py +++ b/ir_rx/mce.py @@ -56,9 +56,8 @@ class MCE(IR_RX): x += 1 + short self.verbose and print(bin(v)) - print(bin(v)) # TEST - #if not check(v): - #raise RuntimeError(self.BADDATA) + if not check(v): + raise RuntimeError(self.BADDATA) val = (v >> 6) & 0x3f addr = v & 0xf # Constant for all buttons on my remote ctrl = (v >> 4) & 3