]> vault307.fbx.one Git - micorpython_ir.git/blobdiff - ir_rx/acquire.py
Support transmit and receive on Samsung remotes.
[micorpython_ir.git] / ir_rx / acquire.py
index ea0b2e4eafd35499fa3c7ca2d86dcec57739762c..af3ab38ba17ad61a46c58ff4700ef3a0c6f9fa5b 100644 (file)
@@ -70,8 +70,8 @@ class IR_GET(IR_RX):
                     print('Protocol start {} {} Burst length {} duration {}'.format(burst[0], burst[1], lb, duration))
                     ok = True
 
-            if not ok and near(burst[0], 4500) and near(burst[1], 4500):  # Samsung?
-                print('Unsupported protocol. Samsung?')
+            if not ok and near(burst[0], 4500) and near(burst[1], 4500) and lb == 67:  # Samsung
+                print('Samsung')
                 ok = True
 
             if not ok and near(burst[0], 3500) and near(burst[1], 1680):  # Panasonic?