Browse Source

Fixed sintaxis error of filament runout

paclema 10 years ago
parent
commit
4dcc0fd55a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

500
   #if HAS_FILRUNOUT
500
   #if HAS_FILRUNOUT
501
     pinMode(FILRUNOUT_PIN, INPUT);
501
     pinMode(FILRUNOUT_PIN, INPUT);
502
     #ifdef ENDSTOPPULLUP_FIL_RUNOUT
502
     #ifdef ENDSTOPPULLUP_FIL_RUNOUT
503
-      WRITE(FILLRUNOUT_PIN, HIGH);
503
+      WRITE(FILRUNOUT_PIN, HIGH);
504
     #endif
504
     #endif
505
   #endif
505
   #endif
506
 }
506
 }
5975
 void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
5975
 void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
5976
   
5976
   
5977
   #if HAS_FILRUNOUT
5977
   #if HAS_FILRUNOUT
5978
-    if (card.sdprinting && !(READ(FILRUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
5978
+    if (IS_SD_PRINTING && !(READ(FILRUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
5979
       filrunout();
5979
       filrunout();
5980
   #endif
5980
   #endif
5981
 
5981
 

Loading…
Cancel
Save