 
 // Debug messages get sent to the serial port.
 void debug(String str) {
-#ifdef DEBUG
+#if DEBUG
   uint32_t now = millis();
   Serial.printf("%07u.%03u: %s\n", now / 1000, now % 1000, str.c_str());
 #endif  // DEBUG

          " value='190B8050000000E0190B8070000010F0'>"
      " <input type='submit' value='Send A/C State'>"
    "</form>"
    "<br><hr>"
#if FIRMWARE_OTA_ENABLE
    "<h3>Update IR Server firmware</h3><p>"
    "<b><mark>Warning:</mark></b><br> "
    "<i>Updating your firmware may screw up your access to the device. "
    "If you are going to use this, know what you are doing first "
    "(and you probably do).</i><br>"
    "<form method='POST' action='/update' enctype='multipart/form-data'>"
      "Firmware to upload: <input type='file' name='update'>"
      "<input type='submit' value='Update'>"
    "</form>"
#endif  // FIRMWARE_OTA_ENABLE
    "</body></html>");
}

// Reset web page

#endif  // MQTT_ENABLE
#ifdef IR_RX
  // Check if an IR code has been received via the IR RX module.
#if REPORT_UNKNOWNS
  if (irrecv.decode(&capture)) {
#else
  if (irrecv.decode(&capture) && capture.decode_type != -1) {
#endif  // REPORT_UNKNOWNS
    lastIrReceivedTime = millis();
    lastIrReceived = String(capture.decode_type) + "," +
        resultToHexidecimal(&capture);
