Implement as optional feature LCD_DECIMAL_SMALL_XY
And reduce the function size to simplify
This commit is contained in:
@@ -69,8 +69,13 @@ void safe_delay(millis_t ms);
|
||||
// Convert float to rj string with 123 or -12 format
|
||||
FORCE_INLINE char *ftostr3(const float& x) { return itostr3((int)x); }
|
||||
|
||||
// Convert float to rj string with 1234, _123, 12.3, _1.2, -123, _-12, or -1.2 format
|
||||
char *ftostr4sign(const float& fx);
|
||||
#if ENABLED(LCD_DECIMAL_SMALL_XY)
|
||||
// Convert float to rj string with 1234, _123, 12.3, _1.2, -123, _-12, or -1.2 format
|
||||
char *ftostr4sign(const float& fx);
|
||||
#else
|
||||
// Convert float to rj string with 1234, _123, -123, __12, _-12, ___1, or __-1 format
|
||||
FORCE_INLINE char *ftostr4sign(const float& x) { return itostr4sign((int)x); }
|
||||
#endif
|
||||
|
||||
#endif // ULTRA_LCD
|
||||
|
||||
|
Reference in New Issue
Block a user