Browse Source

Merge pull request #1998 from paclema/Filament_runout_fix

Fixed sintaxis error of filament runout
pull/1/head
Scott Lahteine 10 years ago
parent
commit
ca8cec8e8a
  1. 4
      Marlin/Marlin_main.cpp

4
Marlin/Marlin_main.cpp

@ -502,7 +502,7 @@ void setup_filrunoutpin() {
#if HAS_FILRUNOUT
pinMode(FILRUNOUT_PIN, INPUT);
#ifdef ENDSTOPPULLUP_FIL_RUNOUT
WRITE(FILLRUNOUT_PIN, HIGH);
WRITE(FILRUNOUT_PIN, HIGH);
#endif
#endif
}
@ -6029,7 +6029,7 @@ void disable_all_steppers() {
void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
#if HAS_FILRUNOUT
if (card.sdprinting && !(READ(FILRUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
if (IS_SD_PRINTING && !(READ(FILRUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
filrunout();
#endif

Loading…
Cancel
Save