Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove whitespace, ProUI fixes #26308

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Marlin/src/lcd/e3v2/proui/dwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1715,6 +1715,22 @@ void dwinPrintFinished() {

// Print was aborted
void dwinPrintAborted() {
#if ENABLED(NOZZLE_PARK_FEATURE)
const xyz_pos_t park_point = NOZZLE_PARK_POINT;
#endif
if (all_axes_homed()) {
const int16_t zpos = current_position.z + TERN(NOZZLE_PARK_FEATURE,
NOZZLE_PARK_Z_RAISE_MIN, Z_POST_CLEARANCE);
_MIN(zpos, Z_MAX_POS);
MString<25> cmd;
cmd.setf(cmd, F("G0Z%i\nG0F2000Y%i"), zpos, TERN(NOZZLE_PARK_FEATURE, park_pos.y, 200));
queue.inject(&cmd);
}
#ifdef SD_FINISHED_RELEASECOMMAND
thinkyhead marked this conversation as resolved.
Show resolved Hide resolved
queue.inject(SD_FINISHED_RELEASECOMMAND);
#endif

hostui.notify("Print Aborted");
dwinPrintFinished();
}

Expand Down
Loading