🎨 Apply F() to G-code subcommands

This commit is contained in:
Scott Lahteine
2021-09-25 18:43:52 -05:00
committed by Scott Lahteine
parent 433a27e475
commit 2b9ae0cc33
28 changed files with 136 additions and 134 deletions

View File

@ -2181,7 +2181,7 @@ void SetMoveZto0() {
dtostrf(Y_CENTER, 1, 1, str_2)
#endif
);
gcode.process_subcommands_now_P(cmd);
gcode.process_subcommands_now(cmd);
planner.synchronize();
ui.set_status_P(PSTR("Now adjust Z Offset"));
HMI_AudioFeedback(true);
@ -2194,7 +2194,7 @@ void SetPID(celsius_t t, heater_id_t h) {
dtostrf(X_CENTER, 1, 1, str_1),
dtostrf(Y_CENTER, 1, 1, str_2)
);
gcode.process_subcommands_now_P(cmd);
gcode.process_subcommands_now(cmd);
planner.synchronize();
thermalManager.PID_autotune(t, h, HMI_data.PidCycles, true);
}
@ -2385,7 +2385,7 @@ void LevBed(uint8_t point) {
#if HAS_ONESTEP_LEVELING
planner.synchronize();
gcode.process_subcommands_now_P(PSTR("M420S0\nG28O"));
gcode.process_subcommands_now(F("M420S0\nG28O"));
planner.synchronize();
zval = probe.probe_at_point(xpos, ypos, PROBE_PT_STOW);
sprintf_P(cmd, PSTR(fmt),
@ -2411,7 +2411,7 @@ void LevBedC () { LevBed(4); }
void ManualMeshStart(){
ui.set_status_P(GET_TEXT(MSG_UBL_BUILD_MESH_MENU));
gcode.process_subcommands_now_P(PSTR("G28 XYO\nG28 Z\nM211 S0\nG29S1"));
gcode.process_subcommands_now(F("G28 XYO\nG28 Z\nM211 S0\nG29S1"));
planner.synchronize();
#ifdef MANUAL_PROBE_START_Z
const uint8_t line = CurrentMenu->line(MMeshMoveZItem->pos);
@ -2429,7 +2429,7 @@ void LevBedC () { LevBed(4); }
void SetMMeshMoveZ() { SetPFloatOnClick(-1, 1, 2, planner.synchronize, LiveMeshMoveZ);}
void ManualMeshContinue(){
gcode.process_subcommands_now_P(PSTR("G29S2"));
gcode.process_subcommands_now(F("G29S2"));
planner.synchronize();
MMeshMoveZItem->draw(CurrentMenu->line(MMeshMoveZItem->pos));
}