 #error "You will need to increase te MQTT_MAX_PACKET_SIZE size a bit in PubSubClient.h"
 #endif
 
-#include "../../../../.passwd.h"
+#include "../../../.passwd.h"
 
 const char* ssid = WIFI_NETWORK;
 const char* wifi_password = WIFI_PASSWD;


  return 1;
}

void loop() {
  handleMachineState();
  tock();



  static unsigned long last_wifi_ok = 0;
  if (WiFi.status() != WL_CONNECTED) {
    Debug.println("Lost WiFi connection.");
    if (machinestate <= WAITINGFORCARD)
      machinestate = NOCONN;
    if ( millis() - last_wifi_ok > 10000) {
      Log.println("Connection dead for 10 seconds now -- Rebooting...");
      ESP.restart();
    }
  } else {
    if (machinestate == NOCONN)
      machinestate == WAITINGFORCARD;
    last_wifi_ok = millis();
  };

#ifdef OTA
  ArduinoOTA.handle();
#endif
