diff --git a/src/pid.c b/src/pid.c --- a/src/pid.c +++ b/src/pid.c @@ -44,7 +44,7 @@ float pid_process(void) // put ssr output on display ssd1306_drawstring(" ", 0, 90); //fixme: this is bad, but I can't get the old digits to clear otherwise char tempstr[6]; - itoa(ssr_output, tempstr, 10); + snprintf(tempstr, 6, "%g", ssr_output); ssd1306_drawstring(tempstr, 0, 90); } else