]> vault307.fbx.one Git - micorpython_ir.git/blobdiff - ir_rx/mce.py
Add MCE. Fix bug with RC5X.
[micorpython_ir.git] / 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