Fix code attempting to sprintf %f (#14869)
Arduino doesn't (always) support `float` formatting in strings. So either cast to `int` or use `dtostrf()` to fix these usages.
This commit is contained in:
1 parent
3e5620283e
commit
c8e30b6639
8 files changed
+75
-76
No files matched your search
@@ -42,7 +42,7 @@
|
||||
SERIAL_CHAR(' ');
|
||||
SERIAL_CHAR(axis_codes[i]);
|
||||
SERIAL_CHAR(':');
|
||||
SERIAL_ECHO(dtostrf(pos[i], 8, precision, str));
|
||||
SERIAL_ECHO(dtostrf(pos[i], 1, precision, str));
|
||||
}
|
||||
SERIAL_EOL();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user