   }
 
   bool pathOK = checkPathAndGetParameters(sRequest, sParam); // get parameters from request, check path
-
   if (pathOK) // generate the html page
   {
     extractParams(sParam);

    retVal += "<tr><td>Remaining shots:</td><td>" + String(currentNShots) + "</td></tr>";
    currentExecMode = TIMELAPSE;
  }
  retVal += "</table>";
  retVal += "</BR>";
  retVal += "<FONT SIZE=-2>Camera trigger switches GPIO" + String(triggerPin) + ".<BR>";
  return retVal;
}



bool checkPathAndGetParameters(String sReq, String& sPar)
{
  String sGetstart = "GET ", sPat = "";
  int iStart, iEndSpace, iEndQuest;
  iStart = sReq.indexOf(sGetstart);
  sPar = "";
  if (iStart >= 0)
  {
