Skip to content
Snippets Groups Projects
Commit b53d75b9 authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

RAM size optimization

Removes printf and malloc!
parent bcecfc43
No related branches found
No related tags found
No related merge requests found
......@@ -72,12 +72,3 @@ char * ltoa(long val, char *buf, int radix)
}
}
// TODO: actually write an efficient dtostrf()....
char * dtostrf(float val, int width, unsigned int precision, char *buf)
{
char format[20];
sprintf(format, "%%%d.%df", width, precision);
sprintf(buf, format, val);
return buf;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment