Mirror with some correction
Dependencies: mbed FastIO FastPWM USBDevice
Diff: main.cpp
- Revision:
- 80:94dc2946871b
- Parent:
- 79:682ae3171a08
- Child:
- 82:4f6209cb5c33
- Child:
- 83:ea44e193fd55
--- a/main.cpp Thu Mar 23 05:19:05 2017 +0000 +++ b/main.cpp Fri Mar 24 05:24:45 2017 +0000 @@ -1962,12 +1962,12 @@ // Time out any received command if (IRCommandIn != 0) { - // Time out inter-key gap mode after 30ms; time out all - // commands after 100ms. + // Time out commands after 200ms without a repeat signal. + // Time out the inter-key gap after 50ms. uint32_t t = IRTimer.read_us(); - if (t > 100000) + if (t > 200000) IRCommandIn = 0; - else if (t > 30000) + else if (t > 50000) IRKeyGap = false; }