     case SHUTTER_CLOSE:
       Serial.printf("Shutter Off %d\n", current);
       digitalWrite(LEDPIN, HIGH);
-      digitalWrite(SHUTTERPIN, HIGH);
+      digitalWrite(SHUTTERPIN, LOW);
       next_state = current + interval_d;
       break;
 

 * Based on Sonoff-Tasmota by Theo Arends
*/

#define VERSION                0x000100  // 0.1.0

enum log_t   {LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE, LOG_LEVEL_ALL};


      sysCfg.timelapse_count++;
      Serial.printf("Shutter On %d\n", current);
      digitalWrite(LEDPIN, LOW);
      digitalWrite(SHUTTERPIN, HIGH);
      if (sysCfg.timelapse_interval < (pulse_d + interval_d + sysCfg.timelapse_pulse))
        sysCfg.timelapse_interval = (pulse_d + interval_d + sysCfg.timelapse_pulse);
      next_state = current + sysCfg.timelapse_interval - (pulse_d + interval_d + sysCfg.timelapse_pulse);
