ソースを参照

🎨 Apply F() to G-code report header

Scott Lahteine 2年前
コミット
d7fede3a63
36個のファイルの変更50行の追加50行の削除
  1. 1
    1
      Marlin/src/gcode/bedlevel/M420.cpp
  2. 1
    1
      Marlin/src/gcode/calibrate/G34_M422.cpp
  3. 1
    1
      Marlin/src/gcode/calibrate/M425.cpp
  4. 3
    3
      Marlin/src/gcode/calibrate/M665.cpp
  5. 2
    2
      Marlin/src/gcode/calibrate/M666.cpp
  6. 1
    1
      Marlin/src/gcode/calibrate/M852.cpp
  7. 5
    5
      Marlin/src/gcode/config/M200-M205.cpp
  8. 1
    1
      Marlin/src/gcode/config/M217.cpp
  9. 1
    1
      Marlin/src/gcode/config/M218.cpp
  10. 1
    1
      Marlin/src/gcode/config/M281.cpp
  11. 1
    1
      Marlin/src/gcode/config/M301.cpp
  12. 1
    1
      Marlin/src/gcode/config/M304.cpp
  13. 1
    1
      Marlin/src/gcode/config/M309.cpp
  14. 1
    1
      Marlin/src/gcode/config/M92.cpp
  15. 1
    1
      Marlin/src/gcode/control/M211.cpp
  16. 1
    1
      Marlin/src/gcode/feature/advance/M900.cpp
  17. 1
    1
      Marlin/src/gcode/feature/controllerfan/M710.cpp
  18. 1
    1
      Marlin/src/gcode/feature/digipot/M907-M910.cpp
  19. 3
    3
      Marlin/src/gcode/feature/fwretract/M207-M209.cpp
  20. 1
    1
      Marlin/src/gcode/feature/pause/M603.cpp
  21. 1
    1
      Marlin/src/gcode/feature/powerloss/M413.cpp
  22. 1
    1
      Marlin/src/gcode/feature/runout/M412.cpp
  23. 1
    1
      Marlin/src/gcode/feature/trinamic/M569.cpp
  24. 1
    1
      Marlin/src/gcode/feature/trinamic/M906.cpp
  25. 2
    2
      Marlin/src/gcode/feature/trinamic/M911-M914.cpp
  26. 3
    3
      Marlin/src/gcode/gcode.cpp
  27. 3
    3
      Marlin/src/gcode/gcode.h
  28. 1
    1
      Marlin/src/gcode/geometry/M206_M428.cpp
  29. 1
    1
      Marlin/src/gcode/lcd/M145.cpp
  30. 1
    1
      Marlin/src/gcode/lcd/M250.cpp
  31. 1
    1
      Marlin/src/gcode/lcd/M256.cpp
  32. 1
    1
      Marlin/src/gcode/lcd/M414.cpp
  33. 1
    1
      Marlin/src/gcode/probe/M851.cpp
  34. 1
    1
      Marlin/src/gcode/units/M149.cpp
  35. 1
    1
      Marlin/src/module/settings.cpp
  36. 1
    1
      Marlin/src/module/temperature.cpp

+ 1
- 1
Marlin/src/gcode/bedlevel/M420.cpp ファイルの表示

@@ -243,7 +243,7 @@ void GcodeSuite::M420() {
243 243
 }
244 244
 
245 245
 void GcodeSuite::M420_report(const bool forReplay/*=true*/) {
246
-  report_heading_etc(forReplay, PSTR(
246
+  report_heading_etc(forReplay, F(
247 247
     TERN(MESH_BED_LEVELING, "Mesh Bed Leveling", TERN(AUTO_BED_LEVELING_UBL, "Unified Bed Leveling", "Auto Bed Leveling"))
248 248
   ));
249 249
   SERIAL_ECHOF(

+ 1
- 1
Marlin/src/gcode/calibrate/G34_M422.cpp ファイルの表示

@@ -538,7 +538,7 @@ void GcodeSuite::M422() {
538 538
 }
539 539
 
540 540
 void GcodeSuite::M422_report(const bool forReplay/*=true*/) {
541
-  report_heading(forReplay, PSTR(STR_Z_AUTO_ALIGN));
541
+  report_heading(forReplay, F(STR_Z_AUTO_ALIGN));
542 542
   LOOP_L_N(i, NUM_Z_STEPPER_DRIVERS) {
543 543
     report_echo_start(forReplay);
544 544
     SERIAL_ECHOLNPGM_P(

+ 1
- 1
Marlin/src/gcode/calibrate/M425.cpp ファイルの表示

@@ -114,7 +114,7 @@ void GcodeSuite::M425() {
114 114
 }
115 115
 
116 116
 void GcodeSuite::M425_report(const bool forReplay/*=true*/) {
117
-  report_heading_etc(forReplay, PSTR(STR_BACKLASH_COMPENSATION));
117
+  report_heading_etc(forReplay, F(STR_BACKLASH_COMPENSATION));
118 118
   SERIAL_ECHOLNPGM_P(
119 119
     PSTR("  M425 F"), backlash.get_correction()
120 120
     #ifdef BACKLASH_SMOOTHING_MM

+ 3
- 3
Marlin/src/gcode/calibrate/M665.cpp ファイルの表示

@@ -62,7 +62,7 @@
62 62
   }
63 63
 
64 64
   void GcodeSuite::M665_report(const bool forReplay/*=true*/) {
65
-    report_heading_etc(forReplay, PSTR(STR_DELTA_SETTINGS));
65
+    report_heading_etc(forReplay, F(STR_DELTA_SETTINGS));
66 66
     SERIAL_ECHOLNPGM_P(
67 67
         PSTR("  M665 L"), LINEAR_UNIT(delta_diagonal_rod)
68 68
       , PSTR(" R"), LINEAR_UNIT(delta_radius)
@@ -132,7 +132,7 @@
132 132
   }
133 133
 
134 134
   void GcodeSuite::M665_report(const bool forReplay/*=true*/) {
135
-    report_heading_etc(forReplay, PSTR(STR_SCARA_SETTINGS " (" STR_S_SEG_PER_SEC TERN_(HAS_SCARA_OFFSET, " " STR_SCARA_P_T_Z) ")"));
135
+    report_heading_etc(forReplay, F(STR_SCARA_SETTINGS " (" STR_S_SEG_PER_SEC TERN_(HAS_SCARA_OFFSET, " " STR_SCARA_P_T_Z) ")"));
136 136
     SERIAL_ECHOLNPGM_P(
137 137
       PSTR("  M665 S"), segments_per_second
138 138
       #if HAS_SCARA_OFFSET
@@ -162,7 +162,7 @@
162 162
   }
163 163
 
164 164
   void GcodeSuite::M665_report(const bool forReplay/*=true*/) {
165
-    report_heading_etc(forReplay, PSTR(STR_POLARGRAPH_SETTINGS " (" STR_S_SEG_PER_SEC ")"));
165
+    report_heading_etc(forReplay, F(STR_POLARGRAPH_SETTINGS " (" STR_S_SEG_PER_SEC ")"));
166 166
     SERIAL_ECHOLNPGM("  M665 S", segments_per_second);
167 167
   }
168 168
 

+ 2
- 2
Marlin/src/gcode/calibrate/M666.cpp ファイルの表示

@@ -61,7 +61,7 @@
61 61
   }
62 62
 
63 63
   void GcodeSuite::M666_report(const bool forReplay/*=true*/) {
64
-    report_heading_etc(forReplay, PSTR(STR_ENDSTOP_ADJUSTMENT));
64
+    report_heading_etc(forReplay, F(STR_ENDSTOP_ADJUSTMENT));
65 65
     SERIAL_ECHOLNPGM_P(
66 66
         PSTR("  M666 X"), LINEAR_UNIT(delta_endstop_adj.a)
67 67
       , SP_Y_STR, LINEAR_UNIT(delta_endstop_adj.b)
@@ -105,7 +105,7 @@
105 105
   }
106 106
 
107 107
   void GcodeSuite::M666_report(const bool forReplay/*=true*/) {
108
-    report_heading_etc(forReplay, PSTR(STR_ENDSTOP_ADJUSTMENT));
108
+    report_heading_etc(forReplay, F(STR_ENDSTOP_ADJUSTMENT));
109 109
     SERIAL_ECHOPGM("  M666");
110 110
     #if ENABLED(X_DUAL_ENDSTOPS)
111 111
       SERIAL_ECHOLNPGM_P(SP_X_STR, LINEAR_UNIT(endstops.x2_endstop_adj));

+ 1
- 1
Marlin/src/gcode/calibrate/M852.cpp ファイルの表示

@@ -92,7 +92,7 @@ void GcodeSuite::M852() {
92 92
 }
93 93
 
94 94
 void GcodeSuite::M852_report(const bool forReplay/*=true*/) {
95
-  report_heading_etc(forReplay, PSTR(STR_SKEW_FACTOR));
95
+  report_heading_etc(forReplay, F(STR_SKEW_FACTOR));
96 96
   SERIAL_ECHOPAIR_F("  M851 I", planner.skew_factor.xy, 6);
97 97
   #if ENABLED(SKEW_CORRECTION_FOR_Z)
98 98
     SERIAL_ECHOPAIR_F(" J", planner.skew_factor.xz, 6);

+ 5
- 5
Marlin/src/gcode/config/M200-M205.cpp ファイルの表示

@@ -76,7 +76,7 @@
76 76
 
77 77
   void GcodeSuite::M200_report(const bool forReplay/*=true*/) {
78 78
     if (!forReplay) {
79
-      report_heading(forReplay, PSTR(STR_FILAMENT_SETTINGS), false);
79
+      report_heading(forReplay, F(STR_FILAMENT_SETTINGS), false);
80 80
       if (!parser.volumetric_enabled) SERIAL_ECHOPGM(" (Disabled):");
81 81
       SERIAL_EOL();
82 82
       report_echo_start(forReplay);
@@ -133,7 +133,7 @@ void GcodeSuite::M201() {
133 133
 }
134 134
 
135 135
 void GcodeSuite::M201_report(const bool forReplay/*=true*/) {
136
-  report_heading_etc(forReplay, PSTR(STR_MAX_ACCELERATION));
136
+  report_heading_etc(forReplay, F(STR_MAX_ACCELERATION));
137 137
   SERIAL_ECHOLNPGM_P(
138 138
     LIST_N(DOUBLE(LINEAR_AXES),
139 139
       PSTR("  M201 X"), LINEAR_UNIT(planner.settings.max_acceleration_mm_per_s2[X_AXIS]),
@@ -178,7 +178,7 @@ void GcodeSuite::M203() {
178 178
 }
179 179
 
180 180
 void GcodeSuite::M203_report(const bool forReplay/*=true*/) {
181
-  report_heading_etc(forReplay, PSTR(STR_MAX_FEEDRATES));
181
+  report_heading_etc(forReplay, F(STR_MAX_FEEDRATES));
182 182
   SERIAL_ECHOLNPGM_P(
183 183
     LIST_N(DOUBLE(LINEAR_AXES),
184 184
       PSTR("  M203 X"), LINEAR_UNIT(planner.settings.max_feedrate_mm_s[X_AXIS]),
@@ -224,7 +224,7 @@ void GcodeSuite::M204() {
224 224
 }
225 225
 
226 226
 void GcodeSuite::M204_report(const bool forReplay/*=true*/) {
227
-  report_heading_etc(forReplay, PSTR(STR_ACCELERATION_P_R_T));
227
+  report_heading_etc(forReplay, F(STR_ACCELERATION_P_R_T));
228 228
   SERIAL_ECHOLNPGM_P(
229 229
       PSTR("  M204 P"), LINEAR_UNIT(planner.settings.acceleration)
230 230
     , PSTR(" R"), LINEAR_UNIT(planner.settings.retract_acceleration)
@@ -285,7 +285,7 @@ void GcodeSuite::M205() {
285 285
 }
286 286
 
287 287
 void GcodeSuite::M205_report(const bool forReplay/*=true*/) {
288
-  report_heading_etc(forReplay, PSTR(
288
+  report_heading_etc(forReplay, F(
289 289
     "Advanced (B<min_segment_time_us> S<min_feedrate> T<min_travel_feedrate>"
290 290
     TERN_(HAS_JUNCTION_DEVIATION, " J<junc_dev>")
291 291
     TERN_(HAS_CLASSIC_JERK, " X<max_x_jerk> Y<max_y_jerk> Z<max_z_jerk>")

+ 1
- 1
Marlin/src/gcode/config/M217.cpp ファイルの表示

@@ -131,7 +131,7 @@ void GcodeSuite::M217() {
131 131
 }
132 132
 
133 133
 void GcodeSuite::M217_report(const bool forReplay/*=true*/) {
134
-  report_heading_etc(forReplay, PSTR(STR_TOOL_CHANGING));
134
+  report_heading_etc(forReplay, F(STR_TOOL_CHANGING));
135 135
 
136 136
   SERIAL_ECHOPGM("  M217");
137 137
 

+ 1
- 1
Marlin/src/gcode/config/M218.cpp ファイルの表示

@@ -57,7 +57,7 @@ void GcodeSuite::M218() {
57 57
 }
58 58
 
59 59
 void GcodeSuite::M218_report(const bool forReplay/*=true*/) {
60
-  report_heading_etc(forReplay, PSTR(STR_HOTEND_OFFSETS));
60
+  report_heading_etc(forReplay, F(STR_HOTEND_OFFSETS));
61 61
   LOOP_S_L_N(e, 1, HOTENDS) {
62 62
     report_echo_start(forReplay);
63 63
     SERIAL_ECHOPGM_P(

+ 1
- 1
Marlin/src/gcode/config/M281.cpp ファイルの表示

@@ -55,7 +55,7 @@ void GcodeSuite::M281() {
55 55
 }
56 56
 
57 57
 void GcodeSuite::M281_report(const bool forReplay/*=true*/) {
58
-  report_heading_etc(forReplay, PSTR(STR_SERVO_ANGLES));
58
+  report_heading_etc(forReplay, F(STR_SERVO_ANGLES));
59 59
   LOOP_L_N(i, NUM_SERVOS) {
60 60
     switch (i) {
61 61
       default: break;

+ 1
- 1
Marlin/src/gcode/config/M301.cpp ファイルの表示

@@ -79,7 +79,7 @@ void GcodeSuite::M301() {
79 79
 }
80 80
 
81 81
 void GcodeSuite::M301_report(const bool forReplay/*=true*/ E_OPTARG(const int8_t eindex/*=-1*/)) {
82
-  report_heading(forReplay, PSTR(STR_HOTEND_PID));
82
+  report_heading(forReplay, F(STR_HOTEND_PID));
83 83
   IF_DISABLED(HAS_MULTI_EXTRUDER, constexpr int8_t eindex = -1);
84 84
   HOTEND_LOOP() {
85 85
     if (e == eindex || eindex == -1) {

+ 1
- 1
Marlin/src/gcode/config/M304.cpp ファイルの表示

@@ -42,7 +42,7 @@ void GcodeSuite::M304() {
42 42
 }
43 43
 
44 44
 void GcodeSuite::M304_report(const bool forReplay/*=true*/) {
45
-  report_heading_etc(forReplay, PSTR(STR_BED_PID));
45
+  report_heading_etc(forReplay, F(STR_BED_PID));
46 46
   SERIAL_ECHO_MSG(
47 47
       "  M304 P", thermalManager.temp_bed.pid.Kp
48 48
     , " I", unscalePID_i(thermalManager.temp_bed.pid.Ki)

+ 1
- 1
Marlin/src/gcode/config/M309.cpp ファイルの表示

@@ -42,7 +42,7 @@ void GcodeSuite::M309() {
42 42
 }
43 43
 
44 44
 void GcodeSuite::M309_report(const bool forReplay/*=true*/) {
45
-  report_heading_etc(forReplay, PSTR(STR_CHAMBER_PID));
45
+  report_heading_etc(forReplay, F(STR_CHAMBER_PID));
46 46
   SERIAL_ECHOLNPGM(
47 47
       "  M309 P", thermalManager.temp_chamber.pid.Kp
48 48
     , " I", unscalePID_i(thermalManager.temp_chamber.pid.Ki)

+ 1
- 1
Marlin/src/gcode/config/M92.cpp ファイルの表示

@@ -91,7 +91,7 @@ void GcodeSuite::M92() {
91 91
 }
92 92
 
93 93
 void GcodeSuite::M92_report(const bool forReplay/*=true*/, const int8_t e/*=-1*/) {
94
-  report_heading_etc(forReplay, PSTR(STR_STEPS_PER_UNIT));
94
+  report_heading_etc(forReplay, F(STR_STEPS_PER_UNIT));
95 95
   SERIAL_ECHOPGM_P(LIST_N(DOUBLE(LINEAR_AXES),
96 96
     PSTR("  M92 X"), LINEAR_UNIT(planner.settings.axis_steps_per_mm[X_AXIS]),
97 97
     SP_Y_STR, LINEAR_UNIT(planner.settings.axis_steps_per_mm[Y_AXIS]),

+ 1
- 1
Marlin/src/gcode/control/M211.cpp ファイルの表示

@@ -40,7 +40,7 @@ void GcodeSuite::M211() {
40 40
 }
41 41
 
42 42
 void GcodeSuite::M211_report(const bool forReplay/*=true*/) {
43
-  report_heading_etc(forReplay, PSTR(STR_SOFT_ENDSTOPS));
43
+  report_heading_etc(forReplay, F(STR_SOFT_ENDSTOPS));
44 44
   SERIAL_ECHOPGM("  M211 S", AS_DIGIT(soft_endstop._enabled), " ; ");
45 45
   serialprintln_onoff(soft_endstop._enabled);
46 46
 

+ 1
- 1
Marlin/src/gcode/feature/advance/M900.cpp ファイルの表示

@@ -145,7 +145,7 @@ void GcodeSuite::M900() {
145 145
 }
146 146
 
147 147
 void GcodeSuite::M900_report(const bool forReplay/*=true*/) {
148
-  report_heading(forReplay, PSTR(STR_LINEAR_ADVANCE));
148
+  report_heading(forReplay, F(STR_LINEAR_ADVANCE));
149 149
   #if EXTRUDERS < 2
150 150
     report_echo_start(forReplay);
151 151
     SERIAL_ECHOLNPGM("  M900 K", planner.extruder_advance_K[0]);

+ 1
- 1
Marlin/src/gcode/feature/controllerfan/M710.cpp ファイルの表示

@@ -67,7 +67,7 @@ void GcodeSuite::M710() {
67 67
 }
68 68
 
69 69
 void GcodeSuite::M710_report(const bool forReplay/*=true*/) {
70
-  report_heading_etc(forReplay, PSTR(STR_CONTROLLER_FAN));
70
+  report_heading_etc(forReplay, F(STR_CONTROLLER_FAN));
71 71
   SERIAL_ECHOLNPGM("  M710"
72 72
     " S", int(controllerFan.settings.active_speed),
73 73
     " I", int(controllerFan.settings.idle_speed),

+ 1
- 1
Marlin/src/gcode/feature/digipot/M907-M910.cpp ファイルの表示

@@ -100,7 +100,7 @@ void GcodeSuite::M907() {
100 100
 #if HAS_MOTOR_CURRENT_SPI || HAS_MOTOR_CURRENT_PWM
101 101
 
102 102
   void GcodeSuite::M907_report(const bool forReplay/*=true*/) {
103
-    report_heading_etc(forReplay, PSTR(STR_STEPPER_MOTOR_CURRENTS));
103
+    report_heading_etc(forReplay, F(STR_STEPPER_MOTOR_CURRENTS));
104 104
     #if HAS_MOTOR_CURRENT_PWM
105 105
       SERIAL_ECHOLNPGM_P(                                    // PWM-based has 3 values:
106 106
           PSTR("  M907 X"), stepper.motor_current_setting[0]  // X and Y

+ 3
- 3
Marlin/src/gcode/feature/fwretract/M207-M209.cpp ファイルの表示

@@ -38,7 +38,7 @@
38 38
 void GcodeSuite::M207() { fwretract.M207(); }
39 39
 
40 40
 void GcodeSuite::M207_report(const bool forReplay/*=true*/) {
41
-  report_heading_etc(forReplay, PSTR(STR_RETRACT_S_F_Z));
41
+  report_heading_etc(forReplay, F(STR_RETRACT_S_F_Z));
42 42
   fwretract.M207_report();
43 43
 }
44 44
 
@@ -53,7 +53,7 @@ void GcodeSuite::M207_report(const bool forReplay/*=true*/) {
53 53
 void GcodeSuite::M208() { fwretract.M208(); }
54 54
 
55 55
 void GcodeSuite::M208_report(const bool forReplay/*=true*/) {
56
-  report_heading_etc(forReplay, PSTR(STR_RECOVER_S_F));
56
+  report_heading_etc(forReplay, F(STR_RECOVER_S_F));
57 57
   fwretract.M208_report();
58 58
 }
59 59
 
@@ -68,7 +68,7 @@ void GcodeSuite::M208_report(const bool forReplay/*=true*/) {
68 68
   void GcodeSuite::M209() { fwretract.M209(); }
69 69
 
70 70
   void GcodeSuite::M209_report(const bool forReplay/*=true*/) {
71
-    report_heading_etc(forReplay, PSTR(STR_AUTO_RETRACT_S));
71
+    report_heading_etc(forReplay, F(STR_AUTO_RETRACT_S));
72 72
     fwretract.M209_report();
73 73
   }
74 74
 

+ 1
- 1
Marlin/src/gcode/feature/pause/M603.cpp ファイルの表示

@@ -65,7 +65,7 @@ void GcodeSuite::M603() {
65 65
 }
66 66
 
67 67
 void GcodeSuite::M603_report(const bool forReplay/*=true*/) {
68
-  report_heading(forReplay, PSTR(STR_FILAMENT_LOAD_UNLOAD));
68
+  report_heading(forReplay, F(STR_FILAMENT_LOAD_UNLOAD));
69 69
 
70 70
   #if EXTRUDERS == 1
71 71
     report_echo_start(forReplay);

+ 1
- 1
Marlin/src/gcode/feature/powerloss/M413.cpp ファイルの表示

@@ -57,7 +57,7 @@ void GcodeSuite::M413() {
57 57
 }
58 58
 
59 59
 void GcodeSuite::M413_report(const bool forReplay/*=true*/) {
60
-  report_heading_etc(forReplay, PSTR(STR_POWER_LOSS_RECOVERY));
60
+  report_heading_etc(forReplay, F(STR_POWER_LOSS_RECOVERY));
61 61
   SERIAL_ECHOPGM("  M413 S", AS_DIGIT(recovery.enabled), " ; ");
62 62
   serialprintln_onoff(recovery.enabled);
63 63
 }

+ 1
- 1
Marlin/src/gcode/feature/runout/M412.cpp ファイルの表示

@@ -67,7 +67,7 @@ void GcodeSuite::M412() {
67 67
 }
68 68
 
69 69
 void GcodeSuite::M412_report(const bool forReplay/*=true*/) {
70
-  report_heading_etc(forReplay, PSTR(STR_FILAMENT_RUNOUT_SENSOR));
70
+  report_heading_etc(forReplay, F(STR_FILAMENT_RUNOUT_SENSOR));
71 71
   SERIAL_ECHOPGM(
72 72
     "  M412 S", runout.enabled
73 73
     #if HAS_FILAMENT_RUNOUT_DISTANCE

+ 1
- 1
Marlin/src/gcode/feature/trinamic/M569.cpp ファイルの表示

@@ -139,7 +139,7 @@ void GcodeSuite::M569() {
139 139
 }
140 140
 
141 141
 void GcodeSuite::M569_report(const bool forReplay/*=true*/) {
142
-  report_heading(forReplay, PSTR(STR_DRIVER_STEPPING_MODE));
142
+  report_heading(forReplay, F(STR_DRIVER_STEPPING_MODE));
143 143
 
144 144
   auto say_M569 = [](const bool forReplay, const char * const etc=nullptr, const bool eol=false) {
145 145
     if (!forReplay) SERIAL_ECHO_START();

+ 1
- 1
Marlin/src/gcode/feature/trinamic/M906.cpp ファイルの表示

@@ -199,7 +199,7 @@ void GcodeSuite::M906() {
199 199
 }
200 200
 
201 201
 void GcodeSuite::M906_report(const bool forReplay/*=true*/) {
202
-  report_heading(forReplay, PSTR(STR_STEPPER_DRIVER_CURRENT));
202
+  report_heading(forReplay, F(STR_STEPPER_DRIVER_CURRENT));
203 203
 
204 204
   auto say_M906 = [](const bool forReplay) {
205 205
     report_echo_start(forReplay);

+ 2
- 2
Marlin/src/gcode/feature/trinamic/M911-M914.cpp ファイルの表示

@@ -311,7 +311,7 @@
311 311
   }
312 312
 
313 313
   void GcodeSuite::M913_report(const bool forReplay/*=true*/) {
314
-    report_heading(forReplay, PSTR(STR_HYBRID_THRESHOLD));
314
+    report_heading(forReplay, F(STR_HYBRID_THRESHOLD));
315 315
 
316 316
     auto say_M913 = [](const bool forReplay) {
317 317
       report_echo_start(forReplay);
@@ -512,7 +512,7 @@
512 512
   }
513 513
 
514 514
   void GcodeSuite::M914_report(const bool forReplay/*=true*/) {
515
-    report_heading(forReplay, PSTR(STR_STALLGUARD_THRESHOLD));
515
+    report_heading(forReplay, F(STR_STALLGUARD_THRESHOLD));
516 516
 
517 517
     auto say_M914 = [](const bool forReplay) {
518 518
       report_echo_start(forReplay);

+ 3
- 3
Marlin/src/gcode/gcode.cpp ファイルの表示

@@ -103,12 +103,12 @@ axis_bits_t GcodeSuite::axis_relative = 0 LOGICAL_AXIS_GANG(
103 103
 #endif
104 104
 
105 105
 void GcodeSuite::report_echo_start(const bool forReplay) { if (!forReplay) SERIAL_ECHO_START(); }
106
-void GcodeSuite::report_heading(const bool forReplay, PGM_P const pstr, const bool eol/*=true*/) {
106
+void GcodeSuite::report_heading(const bool forReplay, FSTR_P const fstr, const bool eol/*=true*/) {
107 107
   if (forReplay) return;
108
-  if (pstr) {
108
+  if (fstr) {
109 109
     SERIAL_ECHO_START();
110 110
     SERIAL_ECHOPGM("; ");
111
-    SERIAL_ECHOPGM_P(pstr);
111
+    SERIAL_ECHOF(fstr);
112 112
   }
113 113
   if (eol) { SERIAL_CHAR(':'); SERIAL_EOL(); }
114 114
 }

+ 3
- 3
Marlin/src/gcode/gcode.h ファイルの表示

@@ -382,9 +382,9 @@ public:
382 382
   }
383 383
 
384 384
   static void report_echo_start(const bool forReplay);
385
-  static void report_heading(const bool forReplay, PGM_P const pstr, const bool eol=true);
386
-  static inline void report_heading_etc(const bool forReplay, PGM_P const pstr, const bool eol=true) {
387
-    report_heading(forReplay, pstr, eol);
385
+  static void report_heading(const bool forReplay, FSTR_P const fstr, const bool eol=true);
386
+  static inline void report_heading_etc(const bool forReplay, FSTR_P const fstr, const bool eol=true) {
387
+    report_heading(forReplay, fstr, eol);
388 388
     report_echo_start(forReplay);
389 389
   }
390 390
   static void say_units();

+ 1
- 1
Marlin/src/gcode/geometry/M206_M428.cpp ファイルの表示

@@ -53,7 +53,7 @@ void GcodeSuite::M206() {
53 53
 }
54 54
 
55 55
 void GcodeSuite::M206_report(const bool forReplay/*=true*/) {
56
-  report_heading_etc(forReplay, PSTR(STR_HOME_OFFSET));
56
+  report_heading_etc(forReplay, F(STR_HOME_OFFSET));
57 57
   SERIAL_ECHOLNPGM_P(
58 58
     #if IS_CARTESIAN
59 59
       LIST_N(DOUBLE(LINEAR_AXES),

+ 1
- 1
Marlin/src/gcode/lcd/M145.cpp ファイルの表示

@@ -61,7 +61,7 @@ void GcodeSuite::M145() {
61 61
 }
62 62
 
63 63
 void GcodeSuite::M145_report(const bool forReplay/*=true*/) {
64
-  report_heading(forReplay, PSTR(STR_MATERIAL_HEATUP));
64
+  report_heading(forReplay, F(STR_MATERIAL_HEATUP));
65 65
   LOOP_L_N(i, PREHEAT_COUNT) {
66 66
     report_echo_start(forReplay);
67 67
     SERIAL_ECHOLNPGM_P(

+ 1
- 1
Marlin/src/gcode/lcd/M250.cpp ファイルの表示

@@ -38,7 +38,7 @@ void GcodeSuite::M250() {
38 38
 }
39 39
 
40 40
 void GcodeSuite::M250_report(const bool forReplay/*=true*/) {
41
-  report_heading_etc(forReplay, PSTR(STR_LCD_CONTRAST));
41
+  report_heading_etc(forReplay, F(STR_LCD_CONTRAST));
42 42
   SERIAL_ECHOLNPGM("  M250 C", ui.contrast);
43 43
 }
44 44
 

+ 1
- 1
Marlin/src/gcode/lcd/M256.cpp ファイルの表示

@@ -37,7 +37,7 @@ void GcodeSuite::M256() {
37 37
 }
38 38
 
39 39
 void GcodeSuite::M256_report(const bool forReplay/*=true*/) {
40
-  report_heading_etc(forReplay, PSTR(STR_LCD_BRIGHTNESS));
40
+  report_heading_etc(forReplay, F(STR_LCD_BRIGHTNESS));
41 41
   SERIAL_ECHOLNPGM("  M256 B", ui.brightness);
42 42
 }
43 43
 

+ 1
- 1
Marlin/src/gcode/lcd/M414.cpp ファイルの表示

@@ -44,7 +44,7 @@ void GcodeSuite::M414() {
44 44
 }
45 45
 
46 46
 void GcodeSuite::M414_report(const bool forReplay/*=true*/) {
47
-  report_heading_etc(forReplay, PSTR(STR_UI_LANGUAGE));
47
+  report_heading_etc(forReplay, F(STR_UI_LANGUAGE));
48 48
   SERIAL_ECHOLNPGM("  M414 S", ui.language);
49 49
 }
50 50
 

+ 1
- 1
Marlin/src/gcode/probe/M851.cpp ファイルの表示

@@ -84,7 +84,7 @@ void GcodeSuite::M851() {
84 84
 }
85 85
 
86 86
 void GcodeSuite::M851_report(const bool forReplay/*=true*/) {
87
-  report_heading_etc(forReplay, PSTR(STR_Z_PROBE_OFFSET));
87
+  report_heading_etc(forReplay, F(STR_Z_PROBE_OFFSET));
88 88
   SERIAL_ECHOPGM_P(
89 89
     #if HAS_PROBE_XY_OFFSET
90 90
       PSTR("  M851 X"), LINEAR_UNIT(probe.offset_xy.x),

+ 1
- 1
Marlin/src/gcode/units/M149.cpp ファイルの表示

@@ -37,7 +37,7 @@ void GcodeSuite::M149() {
37 37
 }
38 38
 
39 39
 void GcodeSuite::M149_report(const bool forReplay/*=true*/) {
40
-  report_heading_etc(forReplay, PSTR(STR_TEMPERATURE_UNITS));
40
+  report_heading_etc(forReplay, F(STR_TEMPERATURE_UNITS));
41 41
   SERIAL_ECHOPGM("  M149 ", AS_CHAR(parser.temp_units_code()), " ; Units in ");
42 42
   SERIAL_ECHOLNF(parser.temp_units_name());
43 43
 }

+ 1
- 1
Marlin/src/module/settings.cpp ファイルの表示

@@ -3037,7 +3037,7 @@ void MarlinSettings::reset() {
3037 3037
   #define CONFIG_ECHO_START()       gcode.report_echo_start(forReplay)
3038 3038
   #define CONFIG_ECHO_MSG(V...)     do{ CONFIG_ECHO_START(); SERIAL_ECHOLNPGM(V); }while(0)
3039 3039
   #define CONFIG_ECHO_MSG_P(V...)   do{ CONFIG_ECHO_START(); SERIAL_ECHOLNPGM_P(V); }while(0)
3040
-  #define CONFIG_ECHO_HEADING(STR)  gcode.report_heading(forReplay, PSTR(STR))
3040
+  #define CONFIG_ECHO_HEADING(STR)  gcode.report_heading(forReplay, F(STR))
3041 3041
 
3042 3042
   void M92_report(const bool echo=true, const int8_t e=-1);
3043 3043
 

+ 1
- 1
Marlin/src/module/temperature.cpp ファイルの表示

@@ -1727,7 +1727,7 @@ void Temperature::manage_heater() {
1727 1727
   }
1728 1728
 
1729 1729
   void Temperature::M305_report(const uint8_t t_index, const bool forReplay/*=true*/) {
1730
-    gcode.report_heading_etc(forReplay, PSTR(STR_USER_THERMISTORS));
1730
+    gcode.report_heading_etc(forReplay, F(STR_USER_THERMISTORS));
1731 1731
     SERIAL_ECHOPGM("  M305 P", AS_DIGIT(t_index));
1732 1732
 
1733 1733
     const user_thermistor_t &t = user_thermistor[t_index];

読み込み中…
キャンセル
保存