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
   #if HAS_FILRUNOUT
502
   #if HAS_FILRUNOUT
503
     pinMode(FILRUNOUT_PIN, INPUT);
503
     pinMode(FILRUNOUT_PIN, INPUT);
504
     #ifdef ENDSTOPPULLUP_FIL_RUNOUT
504
     #ifdef ENDSTOPPULLUP_FIL_RUNOUT
505
-      WRITE(FILLRUNOUT_PIN, HIGH);
505
+      WRITE(FILRUNOUT_PIN, HIGH);
506
     #endif
506
     #endif
507
   #endif
507
   #endif
508
 }
508
 }
6029
 void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
6029
 void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
6030
   
6030
   
6031
   #if HAS_FILRUNOUT
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
       filrunout();
6033
       filrunout();
6034
   #endif
6034
   #endif
6035
 
6035
 

Loading…
Cancel
Save