Browse Source

Simplification

Scott Lahteine 4 years ago
parent
commit
2e03c7939c
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      Marlin/src/module/stepper.h

+ 1
- 5
Marlin/src/module/stepper.h View File

@@ -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…
Cancel
Save