Sfoglia il codice sorgente

[2.0.x]Idex and bl touch fixes (#11395)

* Fix BLTouch homing

Deploy at start, dont call generic stow function at finish or raise goes too high before setting 0

* Update tool_change.cpp

* Update motion.cpp

* Update motion.cpp

* Update motion.cpp

* Update motion.cpp

* Change brackets to be more in align of Marlin coding standards
silentninja1 6 anni fa
parent
commit
6dafb90c01
1 ha cambiato i file con 7 aggiunte e 4 eliminazioni
  1. 7
    4
      Marlin/src/module/tool_change.cpp

+ 7
- 4
Marlin/src/module/tool_change.cpp Vedi File

377
           #endif
377
           #endif
378
         }
378
         }
379
 
379
 
380
-        // Save current position to destination, for use later
381
-        set_destination_from_current();
380
+        
382
 
381
 
383
         #if HAS_LEVELING
382
         #if HAS_LEVELING
384
           // Set current position to the physical position
383
           // Set current position to the physical position
387
         #endif
386
         #endif
388
 
387
 
389
         #if ENABLED(DUAL_X_CARRIAGE)
388
         #if ENABLED(DUAL_X_CARRIAGE)
390
-
389
+          if(current_position[X_AXIS] != x_home_pos(active_extruder))
390
+            set_destination_from_current();
391
+          else
392
+            no_move = true;
391
           dualx_tool_change(tmp_extruder, no_move); // Can modify no_move
393
           dualx_tool_change(tmp_extruder, no_move); // Can modify no_move
392
 
394
 
393
         #else // !DUAL_X_CARRIAGE
395
         #else // !DUAL_X_CARRIAGE
394
-
396
+          // Save current position to destination, for use later
397
+          set_destination_from_current();
395
           #if ENABLED(PARKING_EXTRUDER) // Dual Parking extruder
398
           #if ENABLED(PARKING_EXTRUDER) // Dual Parking extruder
396
             parking_extruder_tool_change(tmp_extruder, no_move);
399
             parking_extruder_tool_change(tmp_extruder, no_move);
397
           #endif
400
           #endif

Loading…
Annulla
Salva