LCD position in current units (#20145)

This commit is contained in:
rdhoggattjr
2020-11-23 23:02:54 -06:00
committed by GitHub
parent 94fea59e9d
commit 62680bb356
5 changed files with 68 additions and 34 deletions

View File

@@ -329,6 +329,10 @@ public:
#endif
static inline bool using_inch_units() { return mm_to_linear_unit(1.0f) != 1.0f; }
#define IN_TO_MM(I) ((I) * 25.4f)
#define MM_TO_IN(M) ((M) / 25.4f)
#define LINEAR_UNIT(V) parser.mm_to_linear_unit(V)
#define VOLUMETRIC_UNIT(V) parser.mm_to_volumetric_unit(V)