Browse Source

ftostr32np > ftostr32sp

sp=space-padded, similar to: ns=no-sign
Scott Lahteine 10 years ago
parent
commit
e7db8ee9e5
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      Marlin/ultralcd.cpp
  2. 1
    1
      Marlin/ultralcd.h
  3. 1
    1
      Marlin/ultralcd_implementation_hitachi_HD44780.h

+ 1
- 1
Marlin/ultralcd.cpp View File

@@ -1497,7 +1497,7 @@ char *ftostr12ns(const float &x)
1497 1497
 }
1498 1498
 
1499 1499
 //  convert float to space-padded string with -_23.4_ format
1500
-char *ftostr32np(const float &x) {
1500
+char *ftostr32sp(const float &x) {
1501 1501
   long xx = abs(x * 100);
1502 1502
   uint8_t dig;
1503 1503
 

+ 1
- 1
Marlin/ultralcd.h View File

@@ -119,7 +119,7 @@ char *ftostr31ns(const float &x); // float to string without sign character
119 119
 char *ftostr31(const float &x);
120 120
 char *ftostr32(const float &x);
121 121
 char *ftostr12ns(const float &x); 
122
-char *ftostr32np(const float &x); // remove zero-padding from ftostr32
122
+char *ftostr32sp(const float &x); // remove zero-padding from ftostr32
123 123
 char *ftostr5(const float &x);
124 124
 char *ftostr51(const float &x);
125 125
 char *ftostr52(const float &x);

+ 1
- 1
Marlin/ultralcd_implementation_hitachi_HD44780.h View File

@@ -548,7 +548,7 @@ static void lcd_implementation_status_screen()
548 548
 # endif//LCD_WIDTH > 19
549 549
     lcd.setCursor(LCD_WIDTH - 8, 1);
550 550
     lcd.print('Z');
551
-    lcd.print(ftostr32np(current_position[Z_AXIS] + 0.00001));
551
+    lcd.print(ftostr32sp(current_position[Z_AXIS] + 0.00001));
552 552
 #endif//LCD_HEIGHT > 2
553 553
 
554 554
 #if LCD_HEIGHT > 3

Loading…
Cancel
Save