Pārlūkot izejas kodu

Fiexed E_ENABLE_PIN errors

Erik van der Zalm 13 gadus atpakaļ
vecāks
revīzija
554cc1718d
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4
    4
      Marlin/Marlin.pde

+ 4
- 4
Marlin/Marlin.pde Parādīt failu

@@ -937,7 +937,7 @@ FORCE_INLINE void process_commands()
937 937
           if(code_seen('X')) disable_x();
938 938
           if(code_seen('Y')) disable_y();
939 939
           if(code_seen('Z')) disable_z();
940
-          #if ((E_ENABLE_PIN != X_ENABLE_PIN) && (E_ENABLE_PIN != Y_ENABLE_PIN)) // Only enable on boards that have seperate ENABLE_PINS
940
+          #if ((E0_ENABLE_PIN != X_ENABLE_PIN) && (E1_ENABLE_PIN != Y_ENABLE_PIN)) // Only enable on boards that have seperate ENABLE_PINS
941 941
             if(code_seen('E')) {
942 942
               disable_e0();
943 943
               disable_e1();
@@ -1248,8 +1248,8 @@ void manage_inactivity(byte debug)
1248 1248
     if( (millis()-previous_millis_cmd) >  EXTRUDER_RUNOUT_SECONDS*1000 ) 
1249 1249
     if(degHotend(active_extruder)>EXTRUDER_RUNOUT_MINTEMP)
1250 1250
     {
1251
-     bool oldstatus=READ(E_ENABLE_PIN);
1252
-     enable_e();
1251
+     bool oldstatus=READ(E0_ENABLE_PIN);
1252
+     enable_e0();
1253 1253
      float oldepos=current_position[E_AXIS];
1254 1254
      float oldedes=destination[E_AXIS];
1255 1255
      plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], 
@@ -1261,7 +1261,7 @@ void manage_inactivity(byte debug)
1261 1261
      previous_millis_cmd=millis();
1262 1262
      //enquecommand(DEFAULT_STEPPER_DEACTIVE_COMMAND);
1263 1263
      st_synchronize();
1264
-     WRITE(E_ENABLE_PIN,oldstatus);
1264
+     WRITE(E0_ENABLE_PIN,oldstatus);
1265 1265
     }
1266 1266
   #endif
1267 1267
   check_axes_activity();

Notiek ielāde…
Atcelt
Saglabāt