-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] SERIAL_FLOAT_PRECISION no longer works as intended #26171
Comments
All these function use fixed precision and G30/M48 (I just checked them) use different precision depending on value shown. |
Using a nightly snapshot from 2023-05-14, SERIAL_FLOAT_PRECISION is working. #define SERIAL_FLOAT_PRECISION 4 #define SERIAL_FLOAT_PRECISION 6 |
The issue with some BTT serial displays requiring exactly 4 digits is a BTT display bug. They will need to fix the firmware for these displays to handle any number of digits. Meanwhile, we can add a hack as a custom flag to ensure 4 digits is sent in all reports where this display requires 4 digits, or to assert that |
While I do agree that the BTT screen does have a bug, I find it more than ordinary that the SERIAL_FLOAT_PRECISION got removed and fixed to 2 positions. The returned position precision should have been configurable IMO as it was before. |
There is no display option to enable when connecting these serial displays...via serial. For "Marlin Mode" on these displays, you'd enable
BTT has instructions in their TFT firmware readme to set Marlin/Marlin/src/module/temperature.cpp Line 4223 in f7d5188
And of course #25928 / 2ef71c6 broke things further. The "hack" is fixing |
The code in |
The feature needs to come back. We should not expect everyone else to update their code because it was accidentally omitted/broken. I am presuming it was accidentally removed as the configuration option remains. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
From #18367
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
The text was updated successfully, but these errors were encountered: