Skip to content

Commit dcd6e59

Browse files
Changes according to lint tool suggestions
1 parent a21b941 commit dcd6e59

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/IRremoteESP8266.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@
957957
#endif // DECODE_BLUESTARHEAVY
958958
#ifndef SEND_BLUESTARHEAVY
959959
#define SEND_BLUESTARHEAVY _IR_ENABLE_DEFAULT_
960-
#endif // SEND_BLUESTARHEAVY
960+
#endif // SEND_BLUESTARHEAVY
961961

962962
#if (DECODE_ARGO || DECODE_DAIKIN || DECODE_FUJITSU_AC || DECODE_GREE || \
963963
DECODE_KELVINATOR || DECODE_MITSUBISHI_AC || DECODE_TOSHIBA_AC || \
@@ -1173,7 +1173,7 @@ const uint16_t kArgo3TimerStateLength = 9; // Bytes
11731173
const uint16_t kArgo3ConfigStateLength = 4; // Bytes
11741174
const uint16_t kArgoDefaultRepeat = kNoRepeat;
11751175
const uint16_t kArrisBits = 32;
1176-
const uint16_t kBluestarHeavyStateLength = 13;
1176+
const uint16_t kBluestarHeavyStateLength = 13;
11771177
const uint16_t kBluestarHeavyBits = kBluestarHeavyStateLength * 8;
11781178
const uint16_t kBosch144StateLength = 18;
11791179
const uint16_t kBosch144Bits = kBosch144StateLength * 8;

src/ir_BluestarHeavy.cpp

+8-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const uint16_t kBluestarHeavyBitMark = 465;
1414
const uint16_t kBluestarHeavyHdrSpace = 5058;
1515
const uint16_t kBluestarHeavyOneSpace = 1548;
1616
const uint16_t kBluestarHeavyZeroSpace = 572;
17-
const uint16_t kBluestarHeavyFreq = 38000;
17+
const uint16_t kBluestarHeavyFreq = 38000;
1818
const uint16_t kBluestarHeavyOverhead = 3;
1919

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

0 commit comments

Comments
 (0)