Skip to content

Commit

Permalink
Using ui.set_status() with a PSTR leads to weird behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
0r31 committed Sep 22, 2023
1 parent 09d0b4d commit d206ab4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Marlin/src/gcode/calibrate/G33.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,9 @@ void GcodeSuite::G33() {
SERIAL_ECHOPGM(" at radius:", dcr);
if (verbose_level == 0) SERIAL_ECHOPGM(" (DRY-RUN)");
SERIAL_EOL();
ui.set_status(checkingac);
char mess[14];
strcpy_P(mess, checkingac);
ui.set_status(mess);

This comment has been minimized.

Copy link
@thinkyhead

thinkyhead Oct 7, 2023

This will also work:

  FSTR_P const checkingac = F("Checking... AC");
  SERIAL_ECHOF(checkingac);
  SERIAL_ECHOPGM(" at radius:", dcr);
  if (verbose_level == 0) SERIAL_ECHOPGM(" (DRY-RUN)");
  SERIAL_EOL();
  ui.set_status(checkingac);

print_calibration_settings(_endstop_results, _angle_results);

Expand Down

0 comments on commit d206ab4

Please sign in to comment.