-
-
Notifications
You must be signed in to change notification settings - Fork 19.5k
Closed
Description
Did you test the latest bugfix-2.1.x
code?
Yes, and the problem still exists.
Bug Description
From #18367
### Description
Introduces DEFAULT_PRINT_FLOAT_PRECISION
### Benefits
Allows increasing the number of fractional digits when printing floats and doubles to serial port.
Effectively increasing the reported precision of probing operations(G30, G38, M48) and configs (M503).
the define is now SERIAL_FLOAT_PRECISION
But this no longer works as intended.
Bug Timeline
Since commit 2ef71c6 on Jun 13
Expected behavior
increasing SERIAL_FLOAT_PRECISION > 2 should increase the precision of G30, G38, M48, M503 and M114
Results from 25c7c43 (commit that introduced SERIAL_FLOAT_PRECISION)
with #define SERIAL_FLOAT_PRECISION 2
M114 X:0.00 Y:0.00 Z:0.00 E:0.00 Count X:0 Y:0 Z:0
with #define SERIAL_FLOAT_PRECISION 4
M114 X:0.0000 Y:0.0000 Z:0.0000 E:0.0000 Count X:0 Y:0 Z:0
Actual behavior
It does not do this any more
Steps to Reproduce
1 #define SERIAL_FLOAT_PRECISION 4
2 build (I build for BOARD_SIMULATED)
3 Do a M114
4 note that it still has 2 decimal places.
these do not show increased precision
Version of Marlin Firmware
Bugfix-2.1.x