| 344 | } |
| 345 | |
| 346 | void 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 | |
| 356 | void IRCommandDispatcher::setRequestToStopReceived(bool aRequestToStopReceived) { |
| 357 | requestToStopReceived = aRequestToStopReceived; |
nothing calls this directly
no outgoing calls
no test coverage detected