| 495 | } |
| 496 | |
| 497 | void IRCommandDispatcher::printIRCommandString(Print *aSerial, IRCommandType aCommand) { |
| 498 | for (uint_fast8_t i = 0; i < sizeof(IRMapping) / sizeof(struct IRToCommandMappingStruct); ++i) { |
| 499 | if (aCommand == IRMapping[i].IRCode) { |
| 500 | printIRCommandStringForArrayIndex(aSerial, i); |
| 501 | return; |
| 502 | } |
| 503 | } |
| 504 | aSerial->println(F("unknown")); |
| 505 | } |
| 506 | |
| 507 | void IRCommandDispatcher::setRequestToStopReceived(bool aRequestToStopReceived) { |
| 508 | requestToStopReceived = aRequestToStopReceived; |
nothing calls this directly
no outgoing calls
no test coverage detected