Skip to content

Commit

Permalink
Add some missing F() invocations. (Arduino-IRremote#1253)
Browse files Browse the repository at this point in the history
Use ... println() instead of println("") to get a blank newline.
  • Loading branch information
leres authored Aug 3, 2024
1 parent c2b95a3 commit 9a4ea59
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/IRReceive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1542,11 +1542,11 @@ void IRrecv::printIRSendUsage(Print *aSerial) {
/*
* Pulse distance or pulse width here
*/
aSerial->print("PulseDistanceWidth");
aSerial->print(F("PulseDistanceWidth"));
if(tNumberOfArrayData > 1) {
aSerial->print("FromArray(38, ");
aSerial->print(F("FromArray(38, "));
} else {
aSerial->print("(38, ");
aSerial->print(F("(38, "));
}
printDistanceWidthTimingInfo(aSerial, &decodedIRData.DistanceWidthTimingInfo);

Expand Down Expand Up @@ -1707,7 +1707,7 @@ void IRrecv::printIRResultRawFormatted(Print *aSerial, bool aOutputMicrosecondsI
}

aSerial->println();
aSerial->print("Sum: ");
aSerial->print(F("Sum: "));
if (aOutputMicrosecondsInsteadOfTicks) {
aSerial->println((uint32_t) tSumOfDurationTicks * MICROS_PER_TICK, DEC);
} else {
Expand Down Expand Up @@ -1770,7 +1770,7 @@ void IRrecv::compensateAndPrintIRResultAsCArray(Print *aSerial, bool aOutputMicr
printIRResultShort(aSerial);

// Newline
aSerial->println("");
aSerial->println();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/IRSend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ void IRsend::sendBiphaseData(uint16_t aBiphaseTimeUnit, uint32_t aData, uint_fas
tLastBitValue = 0;
}
}
IR_TRACE_PRINTLN(F(""));
IR_TRACE_PRINTLN();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/ir_Pronto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void IRrecv::compensateAndPrintIRResultAsPronto(Print *aSerial, uint16_t aFreque
dumpNumber(aSerial, 0);
uint16_t timebase = toTimebase(aFrequencyHertz);
compensateAndDumpSequence(aSerial, &decodedIRData.rawDataPtr->rawbuf[1], decodedIRData.rawlen - 1, timebase); // skip leading space
aSerial->println("\";");
aSerial->println(F("\";"));
}

/*
Expand Down

0 comments on commit 9a4ea59

Please sign in to comment.