Skip to content

Commit 2b61384

Browse files
committed
No deprecation print for ATtinies.
1 parent c131dcc commit 2b61384

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ See also the commit log at github: https://github.com/Arduino-IRremote/Arduino-I
44

55
## 3.4.1
66
- Improved ir_DistanceProtocol.
7+
- Tone for ESP32.
8+
- 2. phase renamed *.cpp.h to .hpp.
9+
- No deprecation print for ATtinies.
710

811
## 3.4.0
912
- Added LG2 protocol.

src/IRReceive.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,8 +1407,10 @@ bool IRrecv::decode(decode_results *aResults) {
14071407
}
14081408

14091409
if (!sDeprecationMessageSent) {
1410+
#if !(defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) || defined(__AVR_ATtiny87__) || defined(__AVR_ATtiny167__))
14101411
Serial.println(
14111412
"The function decode(&results)) is deprecated and may not work as expected! Just use decode() without a parameter and IrReceiver.decodedIRData.<fieldname> .");
1413+
#endif
14121414
sDeprecationMessageSent = true;
14131415
}
14141416

src/ir_Denon.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,10 @@ bool IRrecv::decodeDenonOld(decode_results *aResults) {
228228
void IRsend::sendDenon(unsigned long data, int nbits) {
229229
// Set IR carrier frequency
230230
enableIROut(DENON_KHZ);
231+
#if !(defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) || defined(__AVR_ATtiny87__) || defined(__AVR_ATtiny167__))
231232
Serial.println(
232233
"The function sendDenon(data, nbits) is deprecated and may not work as expected! Use sendDenonRaw(data, NumberOfRepeats) or better sendDenon(Address, Command, NumberOfRepeats).");
234+
#endif
233235

234236
// Header
235237
mark(DENON_HEADER_MARK);

src/ir_LG.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,10 @@ bool IRrecv::decodeLGMSB(decode_results *aResults) {
304304
void IRsend::sendLG(unsigned long data, int nbits) {
305305
// Set IR carrier frequency
306306
enableIROut(LG_KHZ);
307+
#if !(defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) || defined(__AVR_ATtiny87__) || defined(__AVR_ATtiny167__))
307308
Serial.println(
308309
"The function sendLG(data, nbits) is deprecated and may not work as expected! Use sendLGRaw(data, NumberOfRepeats) or better sendLG(Address, Command, NumberOfRepeats).");
309-
310+
#endif
310311
// Header
311312
mark(LG_HEADER_MARK);
312313
space(LG_HEADER_SPACE);

0 commit comments

Comments
 (0)