E8WATS
Fork of RemoteIR by
Diff: ReceiverIR.cpp
- Revision:
- 12:1c4e0b1da34b
- Parent:
- 11:268cc2ab63bd
--- 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. */