-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
mprintf: reduce include overhead\nproper declare symbols with C linka… #791
Conversation
…ge\nfix crash when size is smaller than arg_size for %d %u\n fix padding for %d and %f\nfix buffer overflow for %d %f\n add vsnprintf equivalent \n add putch equivalent
// Author zitron: http://forum.arduino.cc/index.php?topic=37391#msg276209 | ||
// modified by ADiea: remove dependencies strcat, floor, round; reorganize+speedup code | ||
char *dtostrf(double floatVar, int minStringWidthIncDecimalPoint, int numDigitsAfterDecimal, char *outputBuffer) | ||
extern char *dtostrf_p(double floatVar, int minStringWidthIncDecimalPoint, int numDigitsAfterDecimal, char *outputBuffer, char pad) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ADiea why you have extern
here?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm agree should be removed, no idea what was on my mind
@@ -7,7 +7,8 @@ Descr: embedded very simple version of printf with float support | |||
*/ | |||
|
|||
#include <stdarg.h> | |||
#include "../../SmingCore/SmingCore.h" | |||
//#include "../../SmingCore/SmingCore.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ADiea If you want to use only osapi.h then please remove the commented include above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, good to see activity on sming again!
Is it ready? |
I'm very like this PR corrections and think it should be merged as soon as possible. |
…ge\nfix crash when size is smaller than arg_size for %d %u\n fix padding for %d and %f\nfix buffer overflow for %d %f\n add vsnprintf equivalent \n add putch equivalent
Rebase of #748