Browse Source

Adjustable precision in M105 temperature report (#20602)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
vanilla_fb_2.0.x
FanDjango 4 years ago
committed by Scott Lahteine
parent
commit
e3cd293f4e
  1. 5
      Marlin/src/module/temperature.cpp

5
Marlin/src/module/temperature.cpp

@ -3007,8 +3007,9 @@ void Temperature::tick() {
if (e >= 0) SERIAL_CHAR('0' + e);
#endif
SERIAL_CHAR(':');
SERIAL_ECHO(c);
SERIAL_ECHOPAIR(" /" , t);
SERIAL_PRINT(c, _MIN(SERIAL_FLOAT_PRECISION, 2));
SERIAL_ECHOPGM(" /");
SERIAL_PRINT(t, _MIN(SERIAL_FLOAT_PRECISION, 2));
#if ENABLED(SHOW_TEMP_ADC_VALUES)
SERIAL_ECHOPAIR(" (", r * RECIPROCAL(OVERSAMPLENR));
SERIAL_CHAR(')');

Loading…
Cancel
Save