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
   long xx = x * 1000;
2228
   long xx = x * 1000;
2229
   char *conv_ptr = conv;
2229
   char *conv_ptr = conv;
2230
   if (xx >= 0) {
2230
   if (xx >= 0) {
2231
-    *conv_ptr++ = ' ';
2231
+    conv_ptr++;
2232
   }
2232
   }
2233
   else {
2233
   else {
2234
-    conv[0] = '-';
2235
     xx = -xx;
2234
     xx = -xx;
2235
+    conv[0] = '-';
2236
   }
2236
   }
2237
   conv[1] = (xx / 1000) % 10 + '0';
2237
   conv[1] = (xx / 1000) % 10 + '0';
2238
   conv[2] = '.';
2238
   conv[2] = '.';

Loading…
Cancel
Save