Browse Source

Merge pull request #1 from MarlinFirmware/Development

update
pull/1/head
Mehmet Sutas 10 years ago
parent
commit
956fb2d278
  1. 10
      Marlin/Marlin_main.cpp
  2. 2
      Marlin/example_configurations/delta/Configuration.h

10
Marlin/Marlin_main.cpp

@ -5101,17 +5101,17 @@ void controllerFan()
{ {
lastMotorCheck = millis(); lastMotorCheck = millis();
if(!READ(X_ENABLE_PIN) || !READ(Y_ENABLE_PIN) || !READ(Z_ENABLE_PIN) || (soft_pwm_bed > 0) 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)
#if EXTRUDERS > 2 #if EXTRUDERS > 2
|| !READ(E2_ENABLE_PIN) || (READ(E2_ENABLE_PIN) == (E_ENABLE_ON))
#endif #endif
#if EXTRUDER > 1 #if EXTRUDER > 1
#if defined(X2_ENABLE_PIN) && X2_ENABLE_PIN > -1 #if defined(X2_ENABLE_PIN) && X2_ENABLE_PIN > -1
|| !READ(X2_ENABLE_PIN) || (READ(X2_ENABLE_PIN) == (X_ENABLE_ON))
#endif #endif
|| !READ(E1_ENABLE_PIN) || (READ(E1_ENABLE_PIN) == (E_ENABLE_ON))
#endif #endif
|| !READ(E0_ENABLE_PIN)) //If any of the drivers are enabled... || (READ(E0_ENABLE_PIN) == (E_ENABLE_ON))) //If any of the drivers are enabled...
{ {
lastMotor = millis(); //... set time to NOW so the fan will turn on lastMotor = millis(); //... set time to NOW so the fan will turn on
} }

2
Marlin/example_configurations/delta/Configuration.h

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

Loading…
Cancel
Save