Browse Source

Merge pull request #1998 from paclema/Filament_runout_fix

Fixed sintaxis error of filament runout
Scott Lahteine 9 years ago
parent
commit
ca8cec8e8a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

@@ -502,7 +502,7 @@ void setup_filrunoutpin() {
502 502
   #if HAS_FILRUNOUT
503 503
     pinMode(FILRUNOUT_PIN, INPUT);
504 504
     #ifdef ENDSTOPPULLUP_FIL_RUNOUT
505
-      WRITE(FILLRUNOUT_PIN, HIGH);
505
+      WRITE(FILRUNOUT_PIN, HIGH);
506 506
     #endif
507 507
   #endif
508 508
 }
@@ -6029,7 +6029,7 @@ void disable_all_steppers() {
6029 6029
 void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
6030 6030
   
6031 6031
   #if HAS_FILRUNOUT
6032
-    if (card.sdprinting && !(READ(FILRUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
6032
+    if (IS_SD_PRINTING && !(READ(FILRUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
6033 6033
       filrunout();
6034 6034
   #endif
6035 6035
 

Loading…
Cancel
Save