     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();

#define PWM_FREQ 100
#define CONFNAME "/wificreds.conf"

#define SLEDS_OFF { digitalWrite(D6, false); digitalWrite(D7, false); digitalWrite(D8, false); }
#define CAPTIVE_ON { digitalWrite(D6, false); digitalWrite(D7, false); digitalWrite(D8, true); }  // Blue LED
#define BOOT_ON { digitalWrite(D6, true); digitalWrite(D7, true); digitalWrite(D8, false); }      // Yellow LED

        configFile.readBytes(buf.get(), size);
        DynamicJsonBuffer jsonBuffer;
        JsonObject& json = jsonBuffer.parseObject(buf.get());
#ifdef DEBUG        
        json.printTo(Serial);
        Serial.println("");
#endif        
        if (json.success()) {
          stassid = String((const char*)json["sta_ssid"]);
          stapass = String((const char*)json["sta_pass"]);
