-
-
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]Compile error when enable #define POWER_MONITOR_CURRENT #18547
Comments
There are a bunch of similar functions in Marlin/src/libs/numtostr .h and .cpp just not ftostr21ns and ui16tostr4 |
@ellensp Thanks for your tips, I will try it on. |
@ccccmagicboy are you planning to fix this and submit a Pull Request yourself? |
@sjasonsmith Yes, let me do it. Any help appreciated! |
Let me guess ftostr21ns() mean format float to xx.x, and ui16tostr4() mean format uint16 to xxxx string, is that correct? |
@sjasonsmith |
"ftostr21ns() mean format float to xx.x" That would be my guess since it only use this when value is less than 100 and "ui16tostr4() mean format uint16 to xxxx string" Yes. Marlin doesn't have one of these functions, closest is ui16tostr4rj (rj being right justified) |
having a play, there are more things broken than just those two string conversions. |
right that was a mess. most of the lcd code was pre v2 code... |
The PR has been added.. It was quite broken........ This also enables gcode M430 eg: SENDING:M430 NB I don't have probes attached. these are just simulated values from a voltage divider. |
Great!, @ellensp I have the current sensor, let me test it. |
issue with eeprom fixed, I didn't know Power monitor saved any setting so missed it. |
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. |
Bug Description
I got this compile error below when I enabled #define POWER_MONITOR_CURRENT in Configuration_adv.h file.
It is seem that function define of ftostr21ns() and ui16tostr4() are not founded.
I want to test with this new feature, is there any clue to fix it?
My Configurations
pins_CCROBOT_MEEB_3DP.zip
Marlin.zip
Steps to Reproduce
The text was updated successfully, but these errors were encountered: