         incomingString = "";
         }
       }
-    }
-    else {
+    #else
       if (Serial.available() > 0) {
       // read the incoming byte:
       incomingString = Serial.readString();

  //define nothing
#endif

#if defined(easytimer)
  #include "Easytimer.h"
#endif


        incomingString = "";
        }
      }
    #endif
    #endif

    
  #ifdef easytimer
      irsend.sendRaw(buffer,NUM_BITS,38);
      delay(17 + random(0, 5));
   #else
      //Send the IR signal, then wait the appropriate amount of time before re-sending
      irsend.sendRaw(outputcode, codeLen, khz);
      delay(7 + random(2, 5));
    #endif
  
  // -----Status LED blink code start -----
    unsigned long currentMillis = millis();
