         latestindex = i;
         measurementdata[i].flag |= 0x02; //data printed, can now be saved to SD
         printMeasurement(i);
-        
-        if(sdWatchdog >0) //not using SD or SD failed 
+
+        if (sdWatchdog > 0) //not using SD or SD failed
         {
           datareadindex = i; //update the read index (is usually done in SD function after saving the value)
         }

  delay(200); //wait for power to stabilize
  Serial.begin(115200);
  memset(measurementdata, 0, sizeof(measurementdata));
  Serial.println(F("\r\nMutatio grid frequency tracker, part of netzsin.us project"));

  EEPROM.begin(256); //eeprom emulation on flash, the ESP8266 has no actual EERPOM

  attachInterrupt(MEASUREMENTPIN, pininterrupt, CHANGE); //trigger both rising and falling





  config.useDHCP = true;
