Explorar el Código

Simplification

Scott Lahteine hace 4 años
padre
commit
2e03c7939c
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. 1
    5
      Marlin/src/module/stepper.h

+ 1
- 5
Marlin/src/module/stepper.h Ver fichero

@@ -452,11 +452,7 @@ class Stepper {
452 452
 
453 453
     // The extruder associated to the last movement
454 454
     FORCE_INLINE static uint8_t movement_extruder() {
455
-      return (0
456
-        #if EXTRUDERS > 1 && DISABLED(MIXING_EXTRUDER)
457
-          + last_moved_extruder
458
-        #endif
459
-      );
455
+      return (EXTRUDERS > 1 && DISABLED(MIXING_EXTRUDER)) ? last_moved_extruder : 0;
460 456
     }
461 457
 
462 458
     // Handle a triggered endstop

Loading…
Cancelar
Guardar