Skip to content

Commit 5a0844c

Browse files
committed
Fix linting issues
1 parent 019da61 commit 5a0844c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ir_Toshiba.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ uint16_t IRToshibaAC::getInternalStateLength(const uint8_t state[],
105105
const uint16_t size) {
106106
if (size < kToshibaAcLengthByte) return 0;
107107
// Fix: Extract the last 4 bits instead
108-
return std::min((uint16_t)((state[kToshibaAcLengthByte] & 0xF) + kToshibaAcMinLength),
109-
kToshibaACStateLengthLong);
108+
return std::min((uint16_t)((state[kToshibaAcLengthByte] & 0xF)
109+
+ kToshibaAcMinLength), kToshibaACStateLengthLong);
110110
}
111111

112112
/// Get the length of the current internal state per the protocol structure.
@@ -495,8 +495,7 @@ String IRToshibaAC::toString(void) const {
495495
}
496496

497497
void IRToshibaAC::setRemoteControl(const uint8_t remote_type) {
498-
switch (remote_type)
499-
{
498+
switch (remote_type) {
500499
case kToshibaAcRemoteA:
501500
case kToshibaAcRemoteB:
502501
_.Remote = remote_type;

0 commit comments

Comments
 (0)