Skip to content

Commit

Permalink
Changes according to lint tool suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
harshbhosale01 committed Jul 26, 2024
1 parent a21b941 commit dcd6e59
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/IRremoteESP8266.h
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@
#endif // DECODE_BLUESTARHEAVY
#ifndef SEND_BLUESTARHEAVY
#define SEND_BLUESTARHEAVY _IR_ENABLE_DEFAULT_
#endif // SEND_BLUESTARHEAVY
#endif // SEND_BLUESTARHEAVY

#if (DECODE_ARGO || DECODE_DAIKIN || DECODE_FUJITSU_AC || DECODE_GREE || \
DECODE_KELVINATOR || DECODE_MITSUBISHI_AC || DECODE_TOSHIBA_AC || \
Expand Down Expand Up @@ -1173,7 +1173,7 @@ const uint16_t kArgo3TimerStateLength = 9; // Bytes
const uint16_t kArgo3ConfigStateLength = 4; // Bytes
const uint16_t kArgoDefaultRepeat = kNoRepeat;
const uint16_t kArrisBits = 32;
const uint16_t kBluestarHeavyStateLength = 13;
const uint16_t kBluestarHeavyStateLength = 13;
const uint16_t kBluestarHeavyBits = kBluestarHeavyStateLength * 8;
const uint16_t kBosch144StateLength = 18;
const uint16_t kBosch144Bits = kBosch144StateLength * 8;
Expand Down
13 changes: 8 additions & 5 deletions src/ir_BluestarHeavy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const uint16_t kBluestarHeavyBitMark = 465;
const uint16_t kBluestarHeavyHdrSpace = 5058;
const uint16_t kBluestarHeavyOneSpace = 1548;
const uint16_t kBluestarHeavyZeroSpace = 572;
const uint16_t kBluestarHeavyFreq = 38000;
const uint16_t kBluestarHeavyFreq = 38000;
const uint16_t kBluestarHeavyOverhead = 3;

#if SEND_BLUESTARHEAVY
Expand All @@ -24,11 +24,13 @@ const uint16_t kBluestarHeavyOverhead = 3;
/// It is assumed to be in MSB order for this code.
/// e.g.
/// @code
/// uint8_t data[kBluestarHeavyStateLength] = {0xD5, 0xFE, 0xD7, 0x4F, 0xFA, 0x5F, 0xFA, 0x5F, 0xFF, 0x7F, 0x5C, 0xFD, 0xDC};
/// uint8_t data[kBluestarHeavyStateLength] =
/// {0xD5,0xFE,0xD7,0x4F,0xFA,0x5F,0xFA,0x5F,0xFF,0x7F,0x5C,0xFD,0xDC};
/// @endcode
/// @param[in] nbytes Nr. of bytes of data in the array. (>=kBluestarHeavyStateLength)
/// @param[in] nbytes Nr. of bytes of data in the array.
/// @param[in] repeat Nr. of times the message is to be repeated.
void IRsend::sendBluestarHeavy(const uint8_t data[], const uint16_t nbytes, const uint16_t repeat) {
void IRsend::sendBluestarHeavy(const uint8_t data[], const uint16_t nbytes,
const uint16_t repeat) {
sendGeneric(kBluestarHeavyHdrMark, kBluestarHeavyHdrSpace,
kBluestarHeavyBitMark, kBluestarHeavyOneSpace,
kBluestarHeavyBitMark, kBluestarHeavyZeroSpace,
Expand All @@ -47,7 +49,8 @@ void IRsend::sendBluestarHeavy(const uint8_t data[], const uint16_t nbytes, cons
/// @param[in] nbits The number of data bits to expect.
/// @param[in] strict Flag indicating if we should perform strict matching.
/// @return A boolean. True if it can decode it, false if it can't.
bool IRrecv::decodeBluestarHeavy(decode_results *results, uint16_t offset, const uint16_t nbits, const bool strict) {
bool IRrecv::decodeBluestarHeavy(decode_results *results, uint16_t offset,
const uint16_t nbits, const bool strict) {
if (strict && nbits != kBluestarHeavyBits)
return false;

Expand Down

0 comments on commit dcd6e59

Please sign in to comment.