|
@@ -128,9 +128,7 @@ public:
|
128
|
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
|
133
|
#define SEEN_TEST(L) TEST(codebits[(L - 'A') >> 3], (L - 'A') & 0x7)
|
136
|
134
|
|
|
@@ -145,9 +143,7 @@ public:
|
145
|
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
|
148
|
#define SEEN_TEST(L) !!strchr(command_args, L)
|
153
|
149
|
|
|
@@ -207,7 +203,7 @@ public:
|
207
|
203
|
|
208
|
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
|
207
|
switch (units) {
|
212
|
208
|
case LINEARUNIT_INCH:
|
213
|
209
|
linear_unit_factor = 25.4;
|