Browse Source

Small optimization for ftostr43

Scott Lahteine 8 years ago
parent
commit
b98f72b483
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/ultralcd.cpp

+ 2
- 2
Marlin/ultralcd.cpp View File

@@ -2228,11 +2228,11 @@ char* ftostr43(const float& x) {
2228 2228
   long xx = x * 1000;
2229 2229
   char *conv_ptr = conv;
2230 2230
   if (xx >= 0) {
2231
-    *conv_ptr++ = ' ';
2231
+    conv_ptr++;
2232 2232
   }
2233 2233
   else {
2234
-    conv[0] = '-';
2235 2234
     xx = -xx;
2235
+    conv[0] = '-';
2236 2236
   }
2237 2237
   conv[1] = (xx / 1000) % 10 + '0';
2238 2238
   conv[2] = '.';

Loading…
Cancel
Save