Use itoa for sprintf int

This commit is contained in:
Scott Lahteine
2021-04-14 00:26:57 -05:00
parent 07cac80fb0
commit 73f6426114
6 changed files with 28 additions and 28 deletions

View File

@ -322,7 +322,7 @@ void usb_task_init(void) {
char *sptr;
// Patch in the filament diameter
sprintf_P(diam, PSTR("%d"), (int)((DEFAULT_NOMINAL_FILAMENT_DIA) * 1000.0));
itoa((int)((DEFAULT_NOMINAL_FILAMENT_DIA) * 1000), diam, 10);
// And copy it to the proper place, expanding it to unicode
sptr = &diam[0];