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
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
Marlin/src/module/temperature.cpp
|
@ -3007,8 +3007,9 @@ void Temperature::tick() { |
|
|
if (e >= 0) SERIAL_CHAR('0' + e); |
|
|
if (e >= 0) SERIAL_CHAR('0' + e); |
|
|
#endif |
|
|
#endif |
|
|
SERIAL_CHAR(':'); |
|
|
SERIAL_CHAR(':'); |
|
|
SERIAL_ECHO(c); |
|
|
SERIAL_PRINT(c, _MIN(SERIAL_FLOAT_PRECISION, 2)); |
|
|
SERIAL_ECHOPAIR(" /" , t); |
|
|
SERIAL_ECHOPGM(" /"); |
|
|
|
|
|
SERIAL_PRINT(t, _MIN(SERIAL_FLOAT_PRECISION, 2)); |
|
|
#if ENABLED(SHOW_TEMP_ADC_VALUES) |
|
|
#if ENABLED(SHOW_TEMP_ADC_VALUES) |
|
|
SERIAL_ECHOPAIR(" (", r * RECIPROCAL(OVERSAMPLENR)); |
|
|
SERIAL_ECHOPAIR(" (", r * RECIPROCAL(OVERSAMPLENR)); |
|
|
SERIAL_CHAR(')'); |
|
|
SERIAL_CHAR(')'); |
|
|