   if (pathOK) // generate the html page
   {
     extractParams(sParam);
-    pre_process();
+    if (sParam != "")
+      pre_process();
+
     sResponse = generateHTMLPage(delayToStart, numberOfShots, delayBetweenShots);
     generateOKHTML(sResponse, sHeader);
   }

      currentExecMode = RESET;
    else if (params.indexOf("SINGLE_SHOT") >= 0) // single shot
      currentExecMode = ONESHOT;
    else if (params.indexOf("SHOT_INFO") >= 0) // single shot
      currentExecMode = SHOTINFO;
    else // Timelapse
    {
      currentExecMode = TIMELAPSE;

	20170613 Shot counter for WebGUI
  20170712 Defining triggerPin, settings
  20170717 Refactoring
  20170720 Bugfix: Restart timelapse after reconnect removed
  20170720 Information is displayed all the time, refresh button
  --------------------------------------------------*/

#include <ESP8266WiFi.h>
