From 9bcc511c45d4122dd615a23002c30c13415896ad Mon Sep 17 00:00:00 2001 From: Peter Hinch Date: Fri, 20 Mar 2020 17:32:05 +0000 Subject: [PATCH] Add MCE. Fix bug with RC5X. --- ir_rx/mce.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.47.3