G425/G35 menu items; G425 pre- and post- scripts (#18737)

This commit is contained in:
InsanityAutomation
2020-07-25 00:31:15 -04:00
committed by GitHub
parent 60500c0c49
commit c5ec80d6c7
4 changed files with 27 additions and 0 deletions

View File

@ -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