@dc42 Hello ! I found the place in gcode.cpp where i could add a G11 or a G1 E10 at the end of ressurect.g . Not sure I want to go down the path of compiling a custom firmware though, but:
Would this work ? : adding
// Now unretract filament
buf.catf("G11");
after
// Now move down to the correct Z height
buf.catf("\nG0 F6000 Z%.3f\n", (double)pauseRestorePoint.moveCoords[Z_AXIS]);
in
if (ok)
{
// Build the commands to restore the head position. These assume that we are working in mm.
// Start with a vertical move to 2mm above the final Z position
buf.printf("G0 F6000 Z%.3f\n", (double)(pauseRestorePoint.moveCoords[Z_AXIS] + 2.0));
// Now set all the other axes
buf.cat("G0 F6000");
for (size_t axis = 0; axis < numVisibleAxes; ++axis)
{
if (axis != Z_AXIS)
{
buf.catf(" %c%.3f", axisLetters[axis], (double)pauseRestorePoint.moveCoords[axis]);
}
}
// Now move down to the correct Z height
buf.catf("\nG0 F6000 Z%.3f\n", (double)pauseRestorePoint.moveCoords[Z_AXIS]);
// Set the feed rate
buf.catf("G1 F%.1f", (double)InverseConvertSpeedToMmPerMin(pauseRestorePoint.feedRate));