* Configures the timer and the state machine for IR reception. Does not call resume()! * @param aTicksToAddToGapCounter To compensate for the amount of ticks the timer was stopped / disabled. */
| 440 | * @param aTicksToAddToGapCounter To compensate for the amount of ticks the timer was stopped / disabled. |
| 441 | */ |
| 442 | void IRrecv::restartTimerWithTicksToAdd(uint16_t aTicksToAddToGapCounter) { |
| 443 | irparams.TickCounterForISR += aTicksToAddToGapCounter; |
| 444 | timerConfigForReceive(); // no interrupts enabled here! |
| 445 | timerEnableReceiveInterrupt(); // Enables the receive sample timer interrupt which consumes a small amount of CPU every 50 us. |
| 446 | #ifdef _IR_MEASURE_TIMING |
| 447 | pinModeFast(_IR_TIMING_TEST_PIN, OUTPUT); |
| 448 | #endif |
| 449 | } |
| 450 | #if defined(ESP8266) || defined(ESP32) |
| 451 | #pragma GCC diagnostic push |
| 452 | #endif |
nothing calls this directly
no test coverage detected