 #include <EEPROM.h>
 
 #define FW_NAME "homie-sonoff-touch"
-#define FW_VERSION "2.0.6"
+#define FW_VERSION "2.0.7"
 
 // Disable this if you don't want the relay to turn on with any single tap event
-#define IMMEDIATEON
 
 /* Magic sequence for Autodetectable Binary Upload */
 const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54" FW_NAME "\x93\x44\x6b\xa7\x75";

  if ( function > 0 ) {
    Serial.println("One-shot");
    if ( function == 1 ) {
      #ifdef IMMEDIATEON
        // FIXME This could get scrapped
        digitalWrite(PIN_RELAY, HIGH);
        if ( Homie.isConnected() ) { relayNode.setProperty("relayState").send("ON"); }
        Serial.println("Relay is on");
      #endif
      Serial.println("SINGLE click");
      if ( Homie.isConnected() ) { buttonNode.setProperty("event").setRetained(false).send("SINGLE"); }
    }

    if ( function == 2 ) {

}

void setup() {

  Serial.begin(115200);

  EEPROM.begin(sizeof(EEpromData));
  EEPROM.get(0,EEpromData);
  pinMode(PIN_RELAY, OUTPUT);
