MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / printIRCommandString

Method printIRCommandString

src/IRCommandDispatcher.hpp:497–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497void 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
507void IRCommandDispatcher::setRequestToStopReceived(bool aRequestToStopReceived) {
508 requestToStopReceived = aRequestToStopReceived;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected