   int count = results->rawlen;
   
   if (codeType == UNKNOWN) {
-    Serial.println("Received unknown code, saving as raw");
-
-    codeLen = results->rawlen - 1;
-    // To store raw codes:
-    // Drop first value (gap)
-    // Convert from ticks to microseconds
-    // Tweak marks shorter, and spaces longer to cancel out IR receiver distortion
-    for (int i = 1; i <= codeLen; i++) {
-      /*
-      if (i % 2) {
-        // Mark
-        //rawCodes[i - 1] = results->rawbuf[i]*USECPERTICK - MARK_EXCESS;
-        Serial.print(" m");
-      }
-      else {
-        // Space
-        //rawCodes[i - 1] = results->rawbuf[i]*USECPERTICK + MARK_EXCESS;
-        Serial.print(" s");
-      }
-      //Serial.print(rawCodes[i - 1], DEC);
-      */
-    }
-    Serial.println("");
+    //Serial.println("Received unknown code, ignoring");
   }
   else {
     if (codeType == NEC) {

// This is our page serving function that generates web pages
boolean sendPage(char* URL) {
  
  Serial.println("Page printing begun");
  
    printStates();
    writeStates();
    
  //check whether we need to change the led state
  if (URL[1] == '?' && URL[2] == 'L' && URL[3] == 'E' && URL[4] == 'D') //url has a leading /
  {
    ledChange = (int)(URL[5] - 48); //get the led to change.
    
    for (stateCounter = 0 ; stateCounter < 1; stateCounter++)
    {
      if (ledChange == stateCounter)
      {
        states[stateCounter] = !states[stateCounter];
            Serial.print("Have changed ");
            Serial.println(ledChange);
            Serial.print("Sending RFID .... ");
            sendCode();
      }
    }
    

        return true;
   }
   else {
     return false;
   }
}

// Storage for the recorded code
int codeType = -1; // The type of code
unsigned long codeValue; // The code value if not raw
int codeLen; // The length of the code
int toggle = 0; // The RC5/6 toggle state

