Browse Source

🩹 Fix M503 report (#23084)

Evgeniy Zhabotinskiy 3 years ago
parent
commit
dc972990f3
No account linked to committer's email address
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      Marlin/src/gcode/config/M304.cpp
  2. 2
    2
      Marlin/src/module/settings.cpp

+ 1
- 1
Marlin/src/gcode/config/M304.cpp View File

43
 
43
 
44
 void GcodeSuite::M304_report(const bool forReplay/*=true*/) {
44
 void GcodeSuite::M304_report(const bool forReplay/*=true*/) {
45
   report_heading_etc(forReplay, F(STR_BED_PID));
45
   report_heading_etc(forReplay, F(STR_BED_PID));
46
-  SERIAL_ECHO_MSG(
46
+  SERIAL_ECHOLNPGM(
47
       "  M304 P", thermalManager.temp_bed.pid.Kp
47
       "  M304 P", thermalManager.temp_bed.pid.Kp
48
     , " I", unscalePID_i(thermalManager.temp_bed.pid.Ki)
48
     , " I", unscalePID_i(thermalManager.temp_bed.pid.Ki)
49
     , " D", unscalePID_d(thermalManager.temp_bed.pid.Kd)
49
     , " D", unscalePID_d(thermalManager.temp_bed.pid.Kd)

+ 2
- 2
Marlin/src/module/settings.cpp View File

3068
     //
3068
     //
3069
     CONFIG_ECHO_HEADING("Linear Units");
3069
     CONFIG_ECHO_HEADING("Linear Units");
3070
     #if ENABLED(INCH_MODE_SUPPORT)
3070
     #if ENABLED(INCH_MODE_SUPPORT)
3071
-      SERIAL_ECHOPGM("  G2", AS_DIGIT(parser.linear_unit_factor == 1.0), " ;");
3071
+      SERIAL_ECHO_MSG("  G2", AS_DIGIT(parser.linear_unit_factor == 1.0), " ;");
3072
     #else
3072
     #else
3073
-      SERIAL_ECHOPGM("  G21 ;");
3073
+      SERIAL_ECHO_MSG("  G21 ;");
3074
     #endif
3074
     #endif
3075
     gcode.say_units();
3075
     gcode.say_units();
3076
 
3076
 

Loading…
Cancel
Save