E8WATS

Fork of RemoteIR by Shinichiro Nakamura

Files at this revision

API Documentation at this revision

Comitter:
E8
Date:
Mon Jan 30 12:52:13 2017 +0000
Parent:
11:268cc2ab63bd
Commit message:
E8WATS

Changed in this revision

ReceiverIR.cpp Show annotated file Show diff for this revision Revisions of this file
TransmitterIR.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 268cc2ab63bd -r 1c4e0b1da34b ReceiverIR.cpp
--- a/ReceiverIR.cpp	Mon Sep 20 00:54:59 2010 +0000
+++ b/ReceiverIR.cpp	Mon Jan 30 12:52:13 2017 +0000
@@ -126,14 +126,14 @@
                 work.c3 = timer.read_us();
                 int a = work.c2 - work.c1;
                 int b = work.c3 - work.c2;
-                if (InRange(a, RemoteIR::TUS_NEC * 16) && InRange(b, RemoteIR::TUS_NEC * 8)) {
+                if (InRange(a, RemoteIR::TUS_NEC * 8) && InRange(b, RemoteIR::TUS_NEC * 8)) {
                     /*
                      * NEC.
                      */
                     data.format = RemoteIR::NEC;
                     work.state = Receiving;
                     data.bitcount = 0;
-                } else if (InRange(a, RemoteIR::TUS_NEC * 16) && InRange(b, RemoteIR::TUS_NEC * 4)) {
+                } else if (InRange(a, RemoteIR::TUS_NEC * 8) && InRange(b, RemoteIR::TUS_NEC * 4)) {
                     /*
                      * NEC Repeat.
                      */
diff -r 268cc2ab63bd -r 1c4e0b1da34b TransmitterIR.cpp
--- a/TransmitterIR.cpp	Mon Sep 20 00:54:59 2010 +0000
+++ b/TransmitterIR.cpp	Mon Jan 30 12:52:13 2017 +0000
@@ -109,7 +109,7 @@
                 /*
                  * NEC.
                  */
-                static const int LEADER_NEC_HEAD = 16;
+                static const int LEADER_NEC_HEAD = 8;
                 static const int LEADER_NEC_TAIL = 8;
                 if (work.leader < LEADER_NEC_HEAD) {
                     tx.write(0.5);