Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jackysze committed May 12, 2024
1 parent 019da61 commit 5a0844c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/ir_Toshiba.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ uint16_t IRToshibaAC::getInternalStateLength(const uint8_t state[],
const uint16_t size) {
if (size < kToshibaAcLengthByte) return 0;
// Fix: Extract the last 4 bits instead
return std::min((uint16_t)((state[kToshibaAcLengthByte] & 0xF) + kToshibaAcMinLength),
kToshibaACStateLengthLong);
return std::min((uint16_t)((state[kToshibaAcLengthByte] & 0xF)
+ kToshibaAcMinLength), kToshibaACStateLengthLong);
}

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

void IRToshibaAC::setRemoteControl(const uint8_t remote_type) {
switch (remote_type)
{
switch (remote_type) {
case kToshibaAcRemoteA:
case kToshibaAcRemoteB:
_.Remote = remote_type;
Expand Down

0 comments on commit 5a0844c

Please sign in to comment.