Browse Source

Update sw endstops in set_axis_is_at_home

Scott Lahteine 9 years ago
parent
commit
f900f97611
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/Marlin_main.cpp

+ 3
- 3
Marlin/Marlin_main.cpp View File

1350
     }
1350
     }
1351
   #endif
1351
   #endif
1352
 
1352
 
1353
+  axis_known_position[axis] = axis_homed[axis] = true;
1354
+
1353
   position_shift[axis] = 0;
1355
   position_shift[axis] = 0;
1356
+  update_software_endstops(axis);
1354
 
1357
 
1355
   #if ENABLED(DUAL_X_CARRIAGE)
1358
   #if ENABLED(DUAL_X_CARRIAGE)
1356
     if (axis == X_AXIS && (active_extruder != 0 || dual_x_carriage_mode == DXC_DUPLICATION_MODE)) {
1359
     if (axis == X_AXIS && (active_extruder != 0 || dual_x_carriage_mode == DXC_DUPLICATION_MODE)) {
1396
   #endif
1399
   #endif
1397
   {
1400
   {
1398
     current_position[axis] = LOGICAL_POSITION(base_home_pos(axis), axis);
1401
     current_position[axis] = LOGICAL_POSITION(base_home_pos(axis), axis);
1399
-    update_software_endstops(axis);
1400
 
1402
 
1401
     if (axis == Z_AXIS) {
1403
     if (axis == Z_AXIS) {
1402
       #if HAS_BED_PROBE && Z_HOME_DIR < 0
1404
       #if HAS_BED_PROBE && Z_HOME_DIR < 0
1429
       SERIAL_ECHOLNPGM(")");
1431
       SERIAL_ECHOLNPGM(")");
1430
     }
1432
     }
1431
   #endif
1433
   #endif
1432
-
1433
-  axis_known_position[axis] = axis_homed[axis] = true;
1434
 }
1434
 }
1435
 
1435
 
1436
 /**
1436
 /**

Loading…
Cancel
Save