Skip to content

Commit

Permalink
Remove redundant state assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisMiCa committed Jan 9, 2022
1 parent ac9a484 commit 4f6c58f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/IRsmallD_NEC.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void IRsmallDecoder::irISR() { //executed every time the IR signal goes up (but
#if defined(IR_SMALLD_NEC) //Conditional code inclusion (at compile time)
if (bitCount == 16) { //Address and Reversed Address received
if (irSignal.byt[2] != (uint8_t)~irSignal.byt[3]) state = 0; //address error
else state = 2; //Address OK, continue with command reception
// else state = 2; //Address OK, continue with command reception //(redundant assignment)
}
else // that's right, a loose else...
#endif
Expand All @@ -132,7 +132,7 @@ void IRsmallDecoder::irISR() { //executed every time the IR signal goes up (but
}
state = 0;
}
else state = 2; //continue receiving
// else state = 2; //continue receiving //(redundant assignment)
}
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/IRsmallD_SIRC_basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void IRsmallDecoder::irISR() { //executed every time the IR signal goes down (bu
_irDataAvailable = true;
}
state = 0; //done
} else state = 1; //continue Receiving
} // else state = 1; //continue Receiving //(redundant assignment)
}
break;
}
Expand Down

0 comments on commit 4f6c58f

Please sign in to comment.