From e48a52a5300a292a6612afaf07fd1dcbdba36930 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 9 Apr 2017 10:25:35 -0500 Subject: [PATCH] Patch a display issue with LCD_DECIMAL_SMALL_XY The `ftostr4sign` function got munged by the `WITHIN` patch --- Marlin/utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/utility.cpp b/Marlin/utility.cpp index 83e1579b27..432045bc19 100644 --- a/Marlin/utility.cpp +++ b/Marlin/utility.cpp @@ -134,7 +134,7 @@ void safe_delay(millis_t ms) { // Convert float to rj string with 1234, _123, -123, _-12, 12.3, _1.2, or -1.2 format char *ftostr4sign(const float& fx) { int x = fx * 10; - if (WITHIN(x, -99, 999)) return itostr4sign((int)fx); + if (!WITHIN(x, -99, 999)) return itostr4sign((int)fx); int xx = abs(x); conv[0] = x < 0 ? '-' : (xx >= 100 ? DIGIMOD(xx, 100) : ' '); conv[1] = DIGIMOD(xx, 10);