Update software endstops if EEPROM is loaded
This commit is contained in:
parent
464d594450
commit
41b5c48129
|
@ -379,6 +379,7 @@ extern uint8_t active_extruder;
|
||||||
extern float mixing_factor[MIXING_STEPPERS];
|
extern float mixing_factor[MIXING_STEPPERS];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void update_software_endstops(AxisEnum axis);
|
||||||
void calculate_volumetric_multipliers();
|
void calculate_volumetric_multipliers();
|
||||||
|
|
||||||
// Buzzer
|
// Buzzer
|
||||||
|
|
|
@ -1470,7 +1470,7 @@ XYZ_CONSTS_FROM_CONFIG(signed char, home_dir, HOME_DIR);
|
||||||
* the software endstop positions must be refreshed to remain
|
* the software endstop positions must be refreshed to remain
|
||||||
* at the same positions relative to the machine.
|
* 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);
|
float offs = LOGICAL_POSITION(0, axis);
|
||||||
|
|
||||||
#if ENABLED(DUAL_X_CARRIAGE)
|
#if ENABLED(DUAL_X_CARRIAGE)
|
||||||
|
|
|
@ -186,6 +186,9 @@ void Config_Postprocess() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
calculate_volumetric_multipliers();
|
calculate_volumetric_multipliers();
|
||||||
|
|
||||||
|
// Software endstops depend on home_offset
|
||||||
|
LOOP_XYZ(i) update_software_endstops((AxisEnum)i);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLED(EEPROM_SETTINGS)
|
#if ENABLED(EEPROM_SETTINGS)
|
||||||
|
|
Loading…
Reference in a new issue