From 761df686bd3d432ed85d44fe47ffef7f1662c064 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 9 Jun 2017 10:23:48 -0500 Subject: [PATCH] Minor cleanup in gcode.h --- Marlin/gcode.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Marlin/gcode.h b/Marlin/gcode.h index fe5d93012..3001b8b2e 100644 --- a/Marlin/gcode.h +++ b/Marlin/gcode.h @@ -128,9 +128,7 @@ public: return b; } - static volatile bool seen_any() { - return codebits[3] || codebits[2] || codebits[1] || codebits[0]; - } + static volatile bool seen_any() { return codebits[3] || codebits[2] || codebits[1] || codebits[0]; } #define SEEN_TEST(L) TEST(codebits[(L - 'A') >> 3], (L - 'A') & 0x7) @@ -145,9 +143,7 @@ public: return b; } - static volatile bool seen_any() { - return *command_args == '\0'; - } + static volatile bool seen_any() { return *command_args == '\0'; } #define SEEN_TEST(L) !!strchr(command_args, L) @@ -207,7 +203,7 @@ public: #if ENABLED(INCH_MODE_SUPPORT) - inline static void set_input_linear_units(LinearUnit units) { + inline static void set_input_linear_units(const LinearUnit units) { switch (units) { case LINEARUNIT_INCH: linear_unit_factor = 25.4;