Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SERIAL_FLOAT_PRECISION option #18367

Merged
merged 14 commits into from
Jun 23, 2020
2 changes: 1 addition & 1 deletion Marlin/src/MarlinCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ void setup() {
#if ENABLED(MARLIN_DEV_MODE)
auto log_current_ms = [&](PGM_P const msg) {
SERIAL_ECHO_START();
SERIAL_CHAR('['); SERIAL_ECHO(millis()); SERIAL_ECHO("] ");
SERIAL_CHAR('['); SERIAL_ECHO(millis()); SERIAL_ECHOPGM("] ");
serialprintPGM(msg);
SERIAL_EOL();
};
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/gcode/probe/G30.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ void GcodeSuite::G30() {
const ProbePtRaise raise_after = parser.boolval('E', true) ? PROBE_PT_STOW : PROBE_PT_NONE;
const float measured_z = probe.probe_at_point(pos, raise_after, 1);
if (!isnan(measured_z)) {
SERIAL_ECHO("Bed X: "); SERIAL_DECIMAL(pos.x);
SERIAL_ECHO( " Y: "); SERIAL_DECIMAL(pos.y);
SERIAL_ECHOPAIR("Bed X: ", pos.x);
SERIAL_ECHOPAIR( " Y: ", pos.y);
SERIAL_ECHOLNPAIR(" Z: ", measured_z);
}

Expand Down
6 changes: 3 additions & 3 deletions Marlin/src/module/probe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,9 +716,9 @@ float Probe::probe_at_point(const float &rx, const float &ry, const ProbePtRaise
if (stow()) measured_z = NAN; // Error on stow?

if (verbose_level > 2) {
SERIAL_ECHOPAIR_F("Bed X: ", LOGICAL_X_POSITION(rx), 3);
thinkyhead marked this conversation as resolved.
Show resolved Hide resolved
SERIAL_ECHOPAIR_F( " Y: ", LOGICAL_Y_POSITION(ry), 3);
SERIAL_ECHOLNPAIR_F( " Z: ", measured_z, 3);
SERIAL_ECHOPAIR("Bed X: ", LOGICAL_X_POSITION(rx));
SERIAL_ECHOPAIR( " Y: ", LOGICAL_Y_POSITION(ry));
SERIAL_ECHOLNPAIR( " Z: ", measured_z);
}
}

Expand Down