Update a UBL comment (#20931)

This commit is contained in:
Giuliano Zaro 2021-02-02 21:57:30 +01:00 committed by Scott Lahteine
parent da80fd782c
commit 032152c41d

View file

@ -214,7 +214,7 @@
else if (isnan(f)) else if (isnan(f))
serialprintPGM(human ? PSTR(" . ") : PSTR("NAN")); serialprintPGM(human ? PSTR(" . ") : PSTR("NAN"));
else if (human || csv) { else if (human || csv) {
if (human && f >= 0.0) SERIAL_CHAR(f > 0 ? '+' : ' '); // Space for positive ('-' for negative) if (human && f >= 0.0) SERIAL_CHAR(f > 0 ? '+' : ' '); // Display sign also for positive numbers (' ' for 0)
SERIAL_ECHO_F(f, 3); // Positive: 5 digits, Negative: 6 digits SERIAL_ECHO_F(f, 3); // Positive: 5 digits, Negative: 6 digits
} }
if (csv && i < GRID_MAX_POINTS_X - 1) SERIAL_CHAR('\t'); if (csv && i < GRID_MAX_POINTS_X - 1) SERIAL_CHAR('\t');