Skip to content

Commit

Permalink
Better macro
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Nov 21, 2020
1 parent 8f953fa commit 12a9d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/gcode/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ class GCodeParser {
// Init linear units by constructor
GCodeParser() { set_input_linear_units(LINEARUNIT_MM); }

#define IN_TO_MM(in) (in * 25.4f)
#define MM_TO_IN(mm) (mm / 25.4f)
#define IN_TO_MM(I) ((I) * 25.4f)
#define MM_TO_IN(M) ((M) / 25.4f)

static inline void set_input_linear_units(const LinearUnit units) {
switch (units) {
Expand Down

0 comments on commit 12a9d45

Please sign in to comment.