From 67ecf06cc495c04e141d4bd2c2b5a908431c98e5 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 3 May 2017 15:26:00 -0500 Subject: [PATCH] Patch issue in gcode_M900 Noted in #6550 --- Marlin/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index c7a00f5952..4483bdd6f7 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -8970,7 +8970,7 @@ inline void gcode_M503() { SERIAL_ECHOPAIR("Advance K=", planner.extruder_advance_k); SERIAL_ECHOPGM(" E/D="); const float ratio = planner.advance_ed_ratio; - ratio ? SERIAL_ECHO(ratio) : SERIAL_ECHOPGM("Auto"); + if (ratio) SERIAL_ECHO(ratio); else SERIAL_ECHOPGM("Auto"); SERIAL_EOL; } #endif // LIN_ADVANCE