🎨 Move G28O inside ProUI

This commit is contained in:
Scott Lahteine 2023-05-04 18:05:56 -05:00
parent cfbd8a2e36
commit 6bf789d93f
2 changed files with 2 additions and 4 deletions

View file

@ -70,9 +70,7 @@ void GcodeSuite::G30() {
remember_feedrate_scaling_off(); remember_feedrate_scaling_off();
#if EITHER(DWIN_LCD_PROUI, DWIN_CREALITY_LCD_JYERSUI) TERN_(DWIN_CREALITY_LCD_JYERSUI, process_subcommands_now(F("G28O")));
process_subcommands_now(F("G28O"));
#endif
const ProbePtRaise raise_after = parser.boolval('E', true) ? PROBE_PT_STOW : PROBE_PT_NONE; const ProbePtRaise raise_after = parser.boolval('E', true) ? PROBE_PT_STOW : PROBE_PT_NONE;

View file

@ -183,7 +183,7 @@ void BedLevelToolsClass::MoveToZ() {
} }
void BedLevelToolsClass::ProbeXY() { void BedLevelToolsClass::ProbeXY() {
const uint16_t Clear = Z_CLEARANCE_DEPLOY_PROBE; const uint16_t Clear = Z_CLEARANCE_DEPLOY_PROBE;
sprintf_P(cmd, PSTR("G0Z%i\nG30X%sY%s"), sprintf_P(cmd, PSTR("G28O\nG0Z%i\nG30X%sY%s"),
Clear, Clear,
dtostrf(bedlevel.get_mesh_x(bedLevelTools.mesh_x), 1, 2, str_1), dtostrf(bedlevel.get_mesh_x(bedLevelTools.mesh_x), 1, 2, str_1),
dtostrf(bedlevel.get_mesh_y(bedLevelTools.mesh_y), 1, 2, str_2) dtostrf(bedlevel.get_mesh_y(bedLevelTools.mesh_y), 1, 2, str_2)