@@ -130,6 +130,8 @@ typedef enum {
130130#define IRDATA_TOGGLE_BIT_MASK 0x08
131131#define IRDATA_FLAGS_EXTRA_INFO 0x10 // there is unexpected extra info not contained in address and data (e.g. Kaseikyo unknown vendor ID)
132132#define IRDATA_FLAGS_WAS_OVERFLOW 0x40 // irparams.rawlen is 0 in this case to avoid endless overflow
133+ #define IRDATA_FLAGS_IS_LSB_FIRST 0x00
134+ #define IRDATA_FLAGS_IS_MSB_FIRST 0x80 // Just for info. Value is simply determined by the protocol
133135
134136struct IRData {
135137 decode_type_t protocol; // /< UNKNOWN, NEC, SONY, RC5, ...
@@ -283,10 +285,10 @@ class IRrecv {
283285 * The main decoding functions used by the individual decoders
284286 */
285287 bool decodePulseDistanceData (uint8_t aNumberOfBits, uint8_t aStartOffset, unsigned int aBitMarkMicros,
286- unsigned int aOneSpaceMicros, unsigned int aZeroSpaceMicros, bool aMSBfirst = true );
288+ unsigned int aOneSpaceMicros, unsigned int aZeroSpaceMicros, bool aMSBfirst);
287289
288290 bool decodePulseWidthData (uint8_t aNumberOfBits, uint8_t aStartOffset, unsigned int aOneMarkMicros,
289- unsigned int aZeroMarkMicros, unsigned int aBitSpaceMicros, bool aMSBfirst = true );
291+ unsigned int aZeroMarkMicros, unsigned int aBitSpaceMicros, bool aMSBfirst);
290292
291293 bool decodeBiPhaseData (uint8_t aNumberOfBits, uint8_t aStartOffset, uint8_t aValueOfSpaceToMarkTransition,
292294 unsigned int aBiphaseTimeUnit);
@@ -317,7 +319,7 @@ class IRrecv {
317319 /*
318320 * Old functions
319321 */
320- bool decode (decode_results *aResults) __attribute__ ((deprecated (" You should use decode() without a parameter." ))); // deprecated
322+ bool decode (decode_results *aResults) __attribute__ ((deprecated (" Please use decode() without a parameter." ))); // deprecated
321323 bool decodeWhynter ();
322324
323325 bool decodeSAMSUNG () __attribute__ ((deprecated (" Renamed to decodeSamsung()" ))); // deprecated
@@ -395,7 +397,7 @@ class IRsend {
395397 void enableIROut (int khz);
396398
397399 void sendPulseDistanceWidthData (unsigned int aOneMarkMicros, unsigned int aOneSpaceMicros, unsigned int aZeroMarkMicros,
398- unsigned int aZeroSpaceMicros, uint32_t aData, uint8_t aNumberOfBits, bool aMSBfirst = true , bool aSendStopBit = false );
400+ unsigned int aZeroSpaceMicros, uint32_t aData, uint8_t aNumberOfBits, bool aMSBfirst, bool aSendStopBit = false );
399401 void sendBiphaseData (unsigned int aBiphaseTimeUnit, uint32_t aData, uint8_t aNumberOfBits);
400402
401403 void mark (uint16_t timeMicros);
@@ -472,18 +474,18 @@ class IRsend {
472474 */
473475 void sendDenon (unsigned long data, int nbits);
474476 void sendDISH (unsigned long data, int nbits);
475- void sendJVC (unsigned long data, int nbits, bool repeat = false );
477+ void sendJVC (unsigned long data, int nbits, bool repeat = false ) __attribute__ ((deprecated ( " This old function sends MSB first! Please use sendJVC((uint8_t) aAddress, aCommand, aNumberOfRepeats). " ))) ;
476478 void sendLG (unsigned long data, int nbits);
477- void sendNEC (uint32_t data, uint8_t nbits, bool repeat = false );
478- void sendPanasonic (uint16_t aAddress, uint32_t aData);
479+ void sendNEC (uint32_t data, uint8_t nbits, bool repeat = false ) __attribute__ ((deprecated ( " This old function sends MSB first! Please use sendNECRaw(). " ))) ;
480+ void sendPanasonic (uint16_t aAddress, uint32_t aData) __attribute__ ((deprecated ( " This old function sends MSB first! Please use sendPanasonic(aAddress, aCommand, aNumberOfRepeats). " ))) ;
479481 void sendRC5 (uint32_t data, uint8_t nbits);
480482 void sendRC5ext (uint8_t addr, uint8_t cmd, boolean toggle);
481483 void sendRC6 (uint32_t data, uint8_t nbits);
482484 void sendRC6 (uint64_t data, uint8_t nbits);
483485 void sendSharpRaw (unsigned long data, int nbits);
484486 void sendSharp (unsigned int address, unsigned int command);
485- void sendSAMSUNG (unsigned long data, int nbits);
486- void sendSony (unsigned long data, int nbits);
487+ void sendSAMSUNG (unsigned long data, int nbits); __attribute__ ((deprecated ( " This old function sends MSB first! Please use sendSamsung(). " )));
488+ void sendSony (unsigned long data, int nbits) __attribute__ ((deprecated ( " This old function sends MSB first! Please use sendSony(aAddress, aCommand, aNumberOfRepeats). " ))); ;
487489 void sendWhynter (unsigned long data, int nbits);
488490
489491#if defined(USE_SOFT_SEND_PWM) || defined(USE_NO_SEND_PWM)
0 commit comments