* Not used yet */
| 2186 | * Not used yet |
| 2187 | */ |
| 2188 | void IRrecv::printIRDuration(Print *aSerial, bool aOutputMicrosecondsInsteadOfTicks) { |
| 2189 | uint16_t tSumOfDurationTicks = 0; |
| 2190 | for (IRRawlenType i = 1; i < decodedIRData.rawlen; i++) { |
| 2191 | tSumOfDurationTicks += irparams.rawbuf[i]; |
| 2192 | } |
| 2193 | aSerial->print(F("Duration=")); |
| 2194 | if (aOutputMicrosecondsInsteadOfTicks) { |
| 2195 | aSerial->print((uint32_t) tSumOfDurationTicks * MICROS_PER_TICK); |
| 2196 | aSerial->println(F("us")); |
| 2197 | |
| 2198 | } else { |
| 2199 | aSerial->print(tSumOfDurationTicks); |
| 2200 | aSerial->println(F(" ticks")); |
| 2201 | } |
| 2202 | } |
| 2203 | |
| 2204 | /** |
| 2205 | * Dump out the timings in IrReceiver.irparams.rawbuf[] array 8 values per line. |
nothing calls this directly
no outgoing calls
no test coverage detected