Browse Source

ftostr32np > ftostr32sp

sp=space-padded, similar to: ns=no-sign
Scott Lahteine 10 years ago
parent
commit
d080027ff4
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

1444
 }
1444
 }
1445
 
1445
 
1446
 //  convert float to space-padded string with -_23.4_ format
1446
 //  convert float to space-padded string with -_23.4_ format
1447
-char *ftostr32np(const float &x) {
1447
+char *ftostr32sp(const float &x) {
1448
   long xx = abs(x * 100);
1448
   long xx = abs(x * 100);
1449
   uint8_t dig;
1449
   uint8_t dig;
1450
 
1450
 

+ 1
- 1
Marlin/ultralcd.h View File

119
 char *ftostr31(const float &x);
119
 char *ftostr31(const float &x);
120
 char *ftostr32(const float &x);
120
 char *ftostr32(const float &x);
121
 char *ftostr12ns(const float &x); 
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
 char *ftostr5(const float &x);
123
 char *ftostr5(const float &x);
124
 char *ftostr51(const float &x);
124
 char *ftostr51(const float &x);
125
 char *ftostr52(const float &x);
125
 char *ftostr52(const float &x);

+ 1
- 1
Marlin/ultralcd_implementation_hitachi_HD44780.h View File

475
 # endif//LCD_WIDTH > 19
475
 # endif//LCD_WIDTH > 19
476
     lcd.setCursor(LCD_WIDTH - 8, 1);
476
     lcd.setCursor(LCD_WIDTH - 8, 1);
477
     lcd.print('Z');
477
     lcd.print('Z');
478
-    lcd.print(ftostr32np(current_position[Z_AXIS] + 0.00001));
478
+    lcd.print(ftostr32sp(current_position[Z_AXIS] + 0.00001));
479
 #endif//LCD_HEIGHT > 2
479
 #endif//LCD_HEIGHT > 2
480
 
480
 
481
 #if LCD_HEIGHT > 3
481
 #if LCD_HEIGHT > 3

Loading…
Cancel
Save