MCPcopy Create free account
hub / github.com/IRMP-org/IRMP / printIRCommandString

Method printIRCommandString

examples/IRDispatcherDemo/IRCommandDispatcher.hpp:346–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void IRCommandDispatcher::printIRCommandString(Print *aSerial) {
347 for (uint_fast8_t i = 0; i < sizeof(IRMapping) / sizeof(struct IRToCommandMappingStruct); ++i) {
348 if (IRReceivedData.command == IRMapping[i].IRCode) {
349 aSerial->println(reinterpret_cast<const __FlashStringHelper*>(IRMapping[i].CommandString));
350 return;
351 }
352 }
353 aSerial->println(reinterpret_cast<const __FlashStringHelper*>(unknown));
354}
355
356void IRCommandDispatcher::setRequestToStopReceived(bool aRequestToStopReceived) {
357 requestToStopReceived = aRequestToStopReceived;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected