How do I stop the end print macro from clearing the homing state/turning off the motors?
The end macro always turns off the motors, can't find a setting to stop it doing that. Is there one?
Solution:Jump to solution
```[gcode_macro END_PRINT]
description: End print procedure, use this in your Slicer.
gcode:
# reset is_printing_gcode state
SET_GCODE_VARIABLE MACRO=START_PRINT VARIABLE=is_printing_gcode VALUE=False...
10 Replies
You'd have to override the END_PRINT macro
what is the reason you want it to not turn the steppers off? They will continue to consume power just sitting there doing nothing
From the title I'm guessing they don't want to lose home for some reason
Yeah I find it annoying to loose home. Especially when I have to stop a print because of a first layer, and then wait ages to get it going again as it does the whole dance. I'm always by my printer so once I'm actually done and don't need home anymore I'll disable them.
As in override the main END_PRINT macro, not one of the user ones? I assume that means I need to copy all the special bits out of it for moving to the correct position?
Correct, as the end_print macro explicitly turns the motors off
Solution
That's the whole macro, look at lines 36-40
https://github.com/Rat-OS/RatOS-configuration/blob/v2.1.x/macros.cfg#L1230-L1234
you define the macro again in your printer.cfg without the highlighted lines
Cool, is there an appropriate place to do feature requests for RatOS? Personally I feel this should be one of the configuration options, as needing to copy that whole function out (meaning you won't get updates made to it in future versions) seems overkill.
I see the GH has issues enabled, so I assume that's the right place?
yep, you can do a PR there