From 4f6c58f8956da9ed4f50d8fb6ee562b49aec5907 Mon Sep 17 00:00:00 2001 From: Luis Carvalho <56938310+LuisMiCa@users.noreply.github.com> Date: Sun, 9 Jan 2022 18:02:24 +0000 Subject: [PATCH] Remove redundant state assignments --- src/IRsmallD_NEC.h | 4 ++-- src/IRsmallD_SIRC_basic.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IRsmallD_NEC.h b/src/IRsmallD_NEC.h index 7e360e0..34e213f 100644 --- a/src/IRsmallD_NEC.h +++ b/src/IRsmallD_NEC.h @@ -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 @@ -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; } diff --git a/src/IRsmallD_SIRC_basic.h b/src/IRsmallD_SIRC_basic.h index 4ffb8d9..537120b 100644 --- a/src/IRsmallD_SIRC_basic.h +++ b/src/IRsmallD_SIRC_basic.h @@ -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; }