     delayToStart = default_delayToStart;
     numberOfShots = default_numberOfShots;
     delayBetweenShots = default_delayBetweenShots;
+    triggerDuration = default_triggerDuration;
     currentNShots = 0;
+    currentTDuration = 0;
     trigger(OFF);
     currentExecMode = NONE;
   }

    timeSlotCounter = 0;
    currentDelayToStart = delayToStart;
    currentDelayBetweenShots = delayBetweenShots;
    NumberOfShotsSinceStart = 0;
    if (delayToStart == 0)
    {

  20180506 Hint: Use ESP8266 V2.4.0 since V2.4.1 has problems
  20180510 First Version for M5Stack
  20180511 M5Stack: WiFi OFF by default, config menu, C button as value accelerator
  20180528 Setting for trigger duration
  20180528 Preparatory work for timetable
  --------------------------------------------------*/
#ifdef ESP32
#include <M5Stack.h>
