Skip to content

Commit d2b3898

Browse files
author
shimmy-void
committed
Fixed code lints
1 parent 69d1926 commit d2b3898

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/ir_Fujitsu.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2055,7 +2055,7 @@ bool IRrecv::decodeFujitsuAC264(decode_results* results, uint16_t offset,
20552055
// Keep reading bytes until we either run out of message or state to fill.
20562056
match_result_t data_result;
20572057
for (uint16_t i = kFujitsuAc264StateLengthShort;
2058-
offset <= results->rawlen - 16 && i < kFujitsuAc264StateLengthShort +
2058+
offset <= results->rawlen - 16 && i < kFujitsuAc264StateLengthShort +
20592059
restLength; i++, dataBitsSoFar += 8, offset += data_result.used) {
20602060
data_result = matchData(
20612061
&(results->rawbuf[offset]), 8, kFujitsuAcBitMark, kFujitsuAcOneSpace,

src/ir_Fujitsu.h

+12-12
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ union Fujitsu264Protocol {
176176
// Byte 5
177177
uint8_t :8;
178178
// Byte 6
179-
uint8_t RestLength :8; // Nr. of bytes in the message after this byte.
179+
uint8_t RestLength :8; // Nr. of bytes in the message after this byte.
180180
// Byte 7
181-
uint8_t Protocol :8; // Seems like a protocol version number. Not sure.
181+
uint8_t Protocol :8; // Seems like a protocol version number.
182182
// Byte 8
183183
uint64_t SubCmd :1;
184184
uint64_t :1;
185-
uint64_t Temp :6; // Temperature in modes except auto
185+
uint64_t Temp :6; // Temperature in modes except auto
186186
// Byte 9
187187
uint64_t Mode :4;
188188
uint64_t SleepTimerEnable :1;
@@ -197,7 +197,7 @@ union Fujitsu264Protocol {
197197
// Byte 13
198198
uint64_t :8;
199199
// Byte 14
200-
uint64_t TempAuto :8; // Temperature in auto mode
200+
uint64_t TempAuto :8; // Temperature in auto mode
201201
// Byte 15
202202
uint64_t Economy :1;
203203
uint64_t :7;
@@ -214,7 +214,7 @@ union Fujitsu264Protocol {
214214
uint8_t ClockMins :8;
215215
// Byte 21
216216
uint8_t :5;
217-
uint8_t WeakDry :1; // Valid only when mode = dry
217+
uint8_t WeakDry :1; // Valid only when mode = dry
218218
uint8_t :2;
219219
// Byte 22
220220
uint8_t TimerEnable :4;
@@ -263,13 +263,13 @@ const uint8_t kFujitsuAc264CmdOnTimer = 0x39; // 0b00111001
263263
const uint8_t kFujitsuAc264CmdOffTimer = 0x3A; // 0b00111010
264264
const uint8_t kFujitsuAc264CmdCancelOnOffTimer = 0x3B; // 0b00111011
265265

266-
const uint8_t kFujitsuAc264SpCmdTogglePowerful = 0xF0; // 0b11110000
267-
const uint8_t kFujitsuAc264SpCmdTurnOff = 0xF1; // 0b11110001
268-
const uint8_t kFujitsuAc264SpCmdEcoFanOff = 0xF2; // 0b11110010
269-
const uint8_t kFujitsuAc264SpCmdEcoFanOn = 0xF3; // 0b11110011
270-
const uint8_t kFujitsuAc264SpCmdOutsideQuietOff = 0xF4; // 0b11110100
271-
const uint8_t kFujitsuAc264SpCmdOutsideQuietOn = 0xF5; // 0b11110101
272-
const uint8_t kFujitsuAc264SpCmdToggleSterilization = 0xF6; // 0b11110110
266+
const uint8_t kFujitsuAc264SpCmdTogglePowerful = 0xF0; // 0b11110000
267+
const uint8_t kFujitsuAc264SpCmdTurnOff = 0xF1; // 0b11110001
268+
const uint8_t kFujitsuAc264SpCmdEcoFanOff = 0xF2; // 0b11110010
269+
const uint8_t kFujitsuAc264SpCmdEcoFanOn = 0xF3; // 0b11110011
270+
const uint8_t kFujitsuAc264SpCmdOutsideQuietOff = 0xF4; // 0b11110100
271+
const uint8_t kFujitsuAc264SpCmdOutsideQuietOn = 0xF5; // 0b11110101
272+
const uint8_t kFujitsuAc264SpCmdToggleSterilization = 0xF6; // 0b11110110
273273

274274
const uint8_t kFujitsuAc264FanSpeedAuto = 0x0; // 0b0000
275275
const uint8_t kFujitsuAc264FanSpeedQuiet = 0x1; // 0b0001

0 commit comments

Comments
 (0)