G425/G35 menu items; G425 pre- and post- scripts (#18737)
This commit is contained in:
committed by
GitHub
parent
60500c0c49
commit
c5ec80d6c7
@ -576,6 +576,11 @@ inline void calibrate_all() {
|
||||
* no args - Perform entire calibration sequence (backlash + position on all toolheads)
|
||||
*/
|
||||
void GcodeSuite::G425() {
|
||||
|
||||
#ifdef CALIBRATION_SCRIPT_PRE
|
||||
GcodeSuite::process_subcommands_now_P(PSTR(CALIBRATION_SCRIPT_PRE));
|
||||
#endif
|
||||
|
||||
TEMPORARY_SOFT_ENDSTOP_STATE(false);
|
||||
TEMPORARY_BED_LEVELING_STATE(false);
|
||||
|
||||
@ -606,6 +611,10 @@ void GcodeSuite::G425() {
|
||||
#endif
|
||||
else
|
||||
calibrate_all();
|
||||
|
||||
#ifdef CALIBRATION_SCRIPT_POST
|
||||
GcodeSuite::process_subcommands_now_P(PSTR(CALIBRATION_SCRIPT_POST));
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // CALIBRATION_GCODE
|
||||
|
Reference in New Issue
Block a user