Browse Source

Minor cleanup in gcode.h

Scott Lahteine 7 years ago
parent
commit
761df686bd
1 changed files with 3 additions and 7 deletions
  1. 3
    7
      Marlin/gcode.h

+ 3
- 7
Marlin/gcode.h View File

128
       return b;
128
       return b;
129
     }
129
     }
130
 
130
 
131
-    static volatile bool seen_any() {
132
-      return codebits[3] || codebits[2] || codebits[1] || codebits[0];
133
-    }
131
+    static volatile bool seen_any() { return codebits[3] || codebits[2] || codebits[1] || codebits[0]; }
134
 
132
 
135
     #define SEEN_TEST(L) TEST(codebits[(L - 'A') >> 3], (L - 'A') & 0x7)
133
     #define SEEN_TEST(L) TEST(codebits[(L - 'A') >> 3], (L - 'A') & 0x7)
136
 
134
 
145
       return b;
143
       return b;
146
     }
144
     }
147
 
145
 
148
-    static volatile bool seen_any() {
149
-      return *command_args == '\0';
150
-    }
146
+    static volatile bool seen_any() { return *command_args == '\0'; }
151
 
147
 
152
     #define SEEN_TEST(L) !!strchr(command_args, L)
148
     #define SEEN_TEST(L) !!strchr(command_args, L)
153
 
149
 
207
 
203
 
208
   #if ENABLED(INCH_MODE_SUPPORT)
204
   #if ENABLED(INCH_MODE_SUPPORT)
209
 
205
 
210
-    inline static void set_input_linear_units(LinearUnit units) {
206
+    inline static void set_input_linear_units(const LinearUnit units) {
211
       switch (units) {
207
       switch (units) {
212
         case LINEARUNIT_INCH:
208
         case LINEARUNIT_INCH:
213
           linear_unit_factor = 25.4;
209
           linear_unit_factor = 25.4;

Loading…
Cancel
Save