]> vault307.fbx.one Git - micorpython_ir.git/commitdiff
Add MCE. Fix bug with RC5X.
authorPeter Hinch <peter@hinch.me.uk>
Fri, 20 Mar 2020 17:32:05 +0000 (17:32 +0000)
committerPeter Hinch <peter@hinch.me.uk>
Fri, 20 Mar 2020 17:32:05 +0000 (17:32 +0000)
ir_rx/mce.py

index 218c85918f1c14ec990a15e497032e35f597b3b2..c3e3849625643824325900e9fe1933de3e697f54 100644 (file)
@@ -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