Parcourir la source

Merge pull request #1 from MarlinFirmware/Development

update
Mehmet Sutas il y a 10 ans
Parent
révision
956fb2d278

+ 6
- 6
Marlin/Marlin_main.cpp Voir le fichier

@@ -5100,18 +5100,18 @@ void controllerFan()
5100 5100
   if ((millis() - lastMotorCheck) >= 2500) //Not a time critical function, so we only check every 2500ms
5101 5101
   {
5102 5102
     lastMotorCheck = millis();
5103
-
5104
-    if(!READ(X_ENABLE_PIN) || !READ(Y_ENABLE_PIN) || !READ(Z_ENABLE_PIN) || (soft_pwm_bed > 0)
5103
+	
5104
+    if((READ(X_ENABLE_PIN) == (X_ENABLE_ON)) || (READ(Y_ENABLE_PIN) == (Y_ENABLE_ON)) || (READ(Z_ENABLE_PIN) == (Z_ENABLE_ON)) || (soft_pwm_bed > 0)
5105 5105
     #if EXTRUDERS > 2
5106
-       || !READ(E2_ENABLE_PIN)
5106
+       || (READ(E2_ENABLE_PIN) == (E_ENABLE_ON))
5107 5107
     #endif
5108 5108
     #if EXTRUDER > 1
5109 5109
       #if defined(X2_ENABLE_PIN) && X2_ENABLE_PIN > -1
5110
-       || !READ(X2_ENABLE_PIN)
5110
+       || (READ(X2_ENABLE_PIN) == (X_ENABLE_ON))
5111 5111
       #endif
5112
-       || !READ(E1_ENABLE_PIN)
5112
+       || (READ(E1_ENABLE_PIN) == (E_ENABLE_ON))
5113 5113
     #endif
5114
-       || !READ(E0_ENABLE_PIN)) //If any of the drivers are enabled...
5114
+       || (READ(E0_ENABLE_PIN) == (E_ENABLE_ON))) //If any of the drivers are enabled...
5115 5115
     {
5116 5116
       lastMotor = millis(); //... set time to NOW so the fan will turn on
5117 5117
     }

+ 1
- 1
Marlin/example_configurations/delta/Configuration.h Voir le fichier

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"

Chargement…
Annuler
Enregistrer