* Returns pointer to IrReceiver.decodedIRData if IR receiver data is available, else nullptr. */
| 544 | * Returns pointer to IrReceiver.decodedIRData if IR receiver data is available, else nullptr. |
| 545 | */ |
| 546 | IRData* IRrecv::read() { |
| 547 | if (irparams.StateForISR != IR_REC_STATE_STOP) { |
| 548 | return nullptr; |
| 549 | } |
| 550 | if (decode()) { |
| 551 | return &decodedIRData; |
| 552 | } else { |
| 553 | return nullptr; |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | /** |
| 558 | * The main decode function, attempts to decode the recently receive IR signal. |
nothing calls this directly
no outgoing calls
no test coverage detected