     Serial.println(dimmerParams.Level);
     Serial.print(F("  Value: "));
     Serial.println(dimmerParams.nvalue);
+#endif
+    
     setOutput(dimmerParams.Color_r, dimmerParams.Color_g, dimmerParams.Color_b, (!dimmerParams.nvalue)?0:dimmerParams.Level);
+    
+#ifdef DEBUG    
     Serial.println(F("Releasing resources..."));
+#endif    
+
     freeDomoticzRGBDimmer(&dimmerParams);
+
+#ifdef DEBUG    
     Serial.print(F("Resources released. Fragmentation [%]: "));
+#endif    
+
     fragPercent = ESP.getHeapFragmentation();
+
+#ifdef DEBUG    
     Serial.println(fragPercent);
+#endif
+    
     if (fragPercent > 80) {
       Serial.println(F("Fragmentation is too high! Rebooting..."));
       ESP.reset();

  /* remove saved config and restart if the flash button is pushed */
  attachInterrupt(digitalPinToInterrupt(D3), deleteWifiConfig, CHANGE);

  Serial.print(F("Flash chip size: "));
  Serial.println(ESP.getFlashChipRealSize());

  /* Try to load config */
  if (SPIFFS.begin()) {


  Serial.begin(115200);

  // EEPROM init
  EEPROM.begin(512);

  // PWM outputs
  pinMode(D2, OUTPUT);  /* RED */
  pinMode(D4, OUTPUT);  /* GREEN */
