Add SERIAL_FLOAT_PRECISION option (#18367)

This commit is contained in:
Fabio Santos
2020-06-22 19:12:45 -07:00
committed by GitHub
parent 1ea4e393c9
commit 25c7c43a82
15 changed files with 30 additions and 21 deletions

View File

@ -105,7 +105,7 @@ void GcodeSuite::M92() {
if (wanted) {
const float best = uint16_t(wanted / z_full_step_mm) * z_full_step_mm;
SERIAL_ECHOPAIR(", best:[", best);
if (best != wanted) { SERIAL_CHAR(','); SERIAL_ECHO(best + z_full_step_mm); }
if (best != wanted) { SERIAL_CHAR(','); SERIAL_DECIMAL(best + z_full_step_mm); }
SERIAL_CHAR(']');
}
SERIAL_ECHOLNPGM(" }");