🎨 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 23f10563e0
commit 59dac3a7e4
28 changed files with 136 additions and 134 deletions

View File

@@ -53,7 +53,7 @@ void printer_state_polling() {
uiCfg.waitEndMoves = 0;
planner.synchronize();
gcode.process_subcommands_now_P(PSTR("M25"));
gcode.process_subcommands_now(F("M25"));
// save the position
uiCfg.current_x_position_bak = current_position.x;
@@ -93,7 +93,7 @@ void printer_state_polling() {
sprintf_P(public_buf_m, PSTR("G1 Z%s"), dtostrf(uiCfg.current_z_position_bak, 1, 1, str_1));
gcode.process_subcommands_now(public_buf_m);
}
gcode.process_subcommands_now_P(M24_STR);
gcode.process_subcommands_now(FPSTR(M24_STR));
uiCfg.print_state = WORKING;
start_print_time();