Bläddra i källkod

Tweak to stepper advance e_steps update

Scott Lahteine 8 år sedan
förälder
incheckning
d07a913f21
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      Marlin/stepper.cpp

+ 1
- 1
Marlin/stepper.cpp Visa fil

426
           counter_E -= current_block->step_event_count;
426
           counter_E -= current_block->step_event_count;
427
           #if DISABLED(MIXING_EXTRUDER)
427
           #if DISABLED(MIXING_EXTRUDER)
428
             // Don't step E here for mixing extruder
428
             // Don't step E here for mixing extruder
429
-            e_steps[TOOL_E_INDEX] += motor_direction(E_AXIS) ? -1 : 1;
429
+            motor_direction(E_AXIS) ? --e_steps[TOOL_E_INDEX] : ++e_steps[TOOL_E_INDEX];
430
           #endif
430
           #endif
431
         }
431
         }
432
 
432
 

Laddar…
Avbryt
Spara