Browse Source

Update software endstops if EEPROM is loaded

pull/1/head
Scott Lahteine 8 years ago
parent
commit
41b5c48129
  1. 1
      Marlin/Marlin.h
  2. 2
      Marlin/Marlin_main.cpp
  3. 3
      Marlin/configuration_store.cpp

1
Marlin/Marlin.h

@ -379,6 +379,7 @@ extern uint8_t active_extruder;
extern float mixing_factor[MIXING_STEPPERS];
#endif
void update_software_endstops(AxisEnum axis);
void calculate_volumetric_multipliers();
// Buzzer

2
Marlin/Marlin_main.cpp

@ -1470,7 +1470,7 @@ XYZ_CONSTS_FROM_CONFIG(signed char, home_dir, HOME_DIR);
* the software endstop positions must be refreshed to remain
* at the same positions relative to the machine.
*/
static void update_software_endstops(AxisEnum axis) {
void update_software_endstops(AxisEnum axis) {
float offs = LOGICAL_POSITION(0, axis);
#if ENABLED(DUAL_X_CARRIAGE)

3
Marlin/configuration_store.cpp

@ -186,6 +186,9 @@ void Config_Postprocess() {
#endif
calculate_volumetric_multipliers();
// Software endstops depend on home_offset
LOOP_XYZ(i) update_software_endstops((AxisEnum)i);
}
#if ENABLED(EEPROM_SETTINGS)

Loading…
Cancel
Save