Closes #1199
This commit is contained in:
parent
8b9e036889
commit
7c7ced8ecb
|
@ -30,5 +30,6 @@ These are the active contributors of this project that you may contact if there
|
|||
- [Daniel Wallner](https://github.com/danielwallner) Bang & Olufsen protocol.
|
||||
- [slott](https://stackoverflow.com/users/11680056/sklott) Seeduino print(unsigned long long...) support.
|
||||
- [Joe Ostrander](https://github.com/joeostrander) Added support for attiny1614.
|
||||
- [Buzzerb](https://github.com/Buzzerb) Added Extended NEC Protocol macro to TinyIR.
|
||||
|
||||
Note: Please let [ArminJo](https://github.com/ArminJo) know if you have been missed.
|
||||
|
|
|
@ -4,7 +4,7 @@ See also the commit log at github: https://github.com/Arduino-IRremote/Arduino-I
|
|||
|
||||
# 4.2.2
|
||||
- Added convenience function isIRReceiverAttachedForTinyReceiver().
|
||||
- Added Extended NEC Protocol to TinyIR by Butzerb
|
||||
- Added Extended NEC Protocol macro to TinyIR by Buzzerb.
|
||||
|
||||
# 4.2.1
|
||||
- Fix wrong type of tEnableLEDFeedback in IRSend.hpp and IRReceive.hpp.
|
||||
|
|
|
@ -174,7 +174,7 @@ void IRsend::sendPronto(const char *str, int_fast8_t aNumberOfRepeats) {
|
|||
void IRsend::sendPronto_PF(uint_farptr_t str, int_fast8_t aNumberOfRepeats) {
|
||||
size_t len = strlen_PF(str);
|
||||
char work[len + 1];
|
||||
strncpy_PF(work, str, len);
|
||||
strcpy_PF(work, str); // We know that string including terminating character fits in work
|
||||
sendPronto(work, aNumberOfRepeats);
|
||||
}
|
||||
|
||||
|
@ -182,7 +182,7 @@ void IRsend::sendPronto_PF(uint_farptr_t str, int_fast8_t aNumberOfRepeats) {
|
|||
void IRsend::sendPronto_P(const char *str, int_fast8_t aNumberOfRepeats) {
|
||||
size_t len = strlen_P(str);
|
||||
char work[len + 1];
|
||||
strncpy_P(work, str, len);
|
||||
strcpy_P(work, str);
|
||||
sendPronto(work, aNumberOfRepeats);
|
||||
}
|
||||
#endif
|
||||
|
@ -190,7 +190,7 @@ void IRsend::sendPronto_P(const char *str, int_fast8_t aNumberOfRepeats) {
|
|||
void IRsend::sendPronto(const __FlashStringHelper *str, int_fast8_t aNumberOfRepeats) {
|
||||
size_t len = strlen_P(reinterpret_cast<const char*>(str));
|
||||
char work[len + 1];
|
||||
strncpy_P(work, reinterpret_cast<const char*>(str), len);
|
||||
strcpy_P(work, reinterpret_cast<const char*>(str));
|
||||
return sendPronto(work, aNumberOfRepeats);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue