Change XY formatting on LCD (PR#2740)
According to #123 negative values for XY at or below -100 are displaying incorrectly, dropping the first digit. Deltas can easily have XY values in this range. This PR adds a function to display floats/ints formatted like `_123`, `-123`, `_-12`, or `__-1` as appropriate and applies it to the XY coordinates on Hitachi displays. It also moves the Z value to the right to be consistent with the XY formatting.
This commit is contained in:
committed by
Richard Wackerbarth
parent
9acdc6c234
commit
be7167ed97
@@ -121,8 +121,10 @@ char* itostr31(const int& xx);
|
||||
char* itostr3(const int& xx);
|
||||
char* itostr3left(const int& xx);
|
||||
char* itostr4(const int& xx);
|
||||
char* itostr4sign(const int& x);
|
||||
|
||||
char* ftostr3(const float& x);
|
||||
char* ftostr4sign(const float& x);
|
||||
char* ftostr31ns(const float& x); // float to string without sign character
|
||||
char* ftostr31(const float& x);
|
||||
char* ftostr32(const float& x);
|
||||
|
Reference in New Issue
Block a user