Compile less code with EEPROM off
This commit is contained in:
parent
f2301a2a04
commit
6f389158d7
1 changed files with 36 additions and 36 deletions
|
@ -133,6 +133,35 @@
|
||||||
#include "mesh_bed_leveling.h"
|
#include "mesh_bed_leveling.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Post-process after Retrieve or Reset
|
||||||
|
*/
|
||||||
|
void Config_Postprocess() {
|
||||||
|
// steps per s2 needs to be updated to agree with units per s2
|
||||||
|
planner.reset_acceleration_rates();
|
||||||
|
|
||||||
|
// Make sure delta kinematics are updated before refreshing the
|
||||||
|
// planner position so the stepper counts will be set correctly.
|
||||||
|
#if ENABLED(DELTA)
|
||||||
|
recalc_delta_settings(delta_radius, delta_diagonal_rod);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Refresh steps_to_mm with the reciprocal of axis_steps_per_mm
|
||||||
|
// and init stepper.count[], planner.position[] with current_position
|
||||||
|
planner.refresh_positioning();
|
||||||
|
|
||||||
|
#if ENABLED(PIDTEMP)
|
||||||
|
thermalManager.updatePID();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
calculate_volumetric_multipliers();
|
||||||
|
|
||||||
|
// Software endstops depend on home_offset
|
||||||
|
LOOP_XYZ(i) update_software_endstops((AxisEnum)i);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if ENABLED(EEPROM_SETTINGS)
|
||||||
|
|
||||||
uint16_t eeprom_checksum;
|
uint16_t eeprom_checksum;
|
||||||
const char version[4] = EEPROM_VERSION;
|
const char version[4] = EEPROM_VERSION;
|
||||||
|
|
||||||
|
@ -169,35 +198,6 @@ void _EEPROM_readData(int &pos, uint8_t* value, uint8_t size) {
|
||||||
} while (--size);
|
} while (--size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Post-process after Retrieve or Reset
|
|
||||||
*/
|
|
||||||
void Config_Postprocess() {
|
|
||||||
// steps per s2 needs to be updated to agree with units per s2
|
|
||||||
planner.reset_acceleration_rates();
|
|
||||||
|
|
||||||
// Make sure delta kinematics are updated before refreshing the
|
|
||||||
// planner position so the stepper counts will be set correctly.
|
|
||||||
#if ENABLED(DELTA)
|
|
||||||
recalc_delta_settings(delta_radius, delta_diagonal_rod);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Refresh steps_to_mm with the reciprocal of axis_steps_per_mm
|
|
||||||
// and init stepper.count[], planner.position[] with current_position
|
|
||||||
planner.refresh_positioning();
|
|
||||||
|
|
||||||
#if ENABLED(PIDTEMP)
|
|
||||||
thermalManager.updatePID();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
calculate_volumetric_multipliers();
|
|
||||||
|
|
||||||
// Software endstops depend on home_offset
|
|
||||||
LOOP_XYZ(i) update_software_endstops((AxisEnum)i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if ENABLED(EEPROM_SETTINGS)
|
|
||||||
|
|
||||||
#define DUMMY_PID_VALUE 3000.0f
|
#define DUMMY_PID_VALUE 3000.0f
|
||||||
#define EEPROM_START() int eeprom_index = EEPROM_OFFSET
|
#define EEPROM_START() int eeprom_index = EEPROM_OFFSET
|
||||||
#define EEPROM_SKIP(VAR) eeprom_index += sizeof(VAR)
|
#define EEPROM_SKIP(VAR) eeprom_index += sizeof(VAR)
|
||||||
|
|
Reference in a new issue