Browse Source

As it should be

Scott Lahteine 10 years ago
parent
commit
d1f21d1189
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      Marlin/ultralcd.cpp

+ 13
- 0
Marlin/ultralcd.cpp View File

1498
 
1498
 
1499
 //  convert float to space-padded string with -_23.4_ format
1499
 //  convert float to space-padded string with -_23.4_ format
1500
 char *ftostr32np(const float &x) {
1500
 char *ftostr32np(const float &x) {
1501
+<<<<<<< HEAD
1501
   long xx = abs(x * 100);
1502
   long xx = abs(x * 100);
1502
   uint8_t dig;
1503
   uint8_t dig;
1503
 
1504
 
1541
   }
1542
   }
1542
   conv[6] = '\0';
1543
   conv[6] = '\0';
1543
   return conv;
1544
   return conv;
1545
+=======
1546
+  char *c = ftostr32(x);
1547
+  if (c[0] == '0' || c[0] == '-') {
1548
+    if (c[0] == '0') c[0] = ' ';
1549
+    if (c[1] == '0') c[1] = ' ';
1550
+  }
1551
+  if (c[5] == '0') {
1552
+    c[5] = ' ';
1553
+    if (c[4] == '0') c[4] = c[3] = ' ';
1554
+  }
1555
+  return c;
1556
+>>>>>>> Patch to make Z look more like X and Y on UltraLCD
1544
 }
1557
 }
1545
 
1558
 
1546
 char *itostr31(const int &xx)
1559
 char *itostr31(const int &xx)

Loading…
Cancel
Save