Skip to content

Commit

Permalink
Merge pull request MarlinFirmware#1998 from paclema/Filament_runout_fix
Browse files Browse the repository at this point in the history
Fixed sintaxis error of filament runout
  • Loading branch information
thinkyhead committed Apr 30, 2015
2 parents 425cd46 + 4dcc0fd commit ca8cec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit ca8cec8

Please sign in to comment.