|
@@ -98,17 +98,13 @@ public:
|
98
|
98
|
#if ENABLED(FASTER_GCODE_PARSER)
|
99
|
99
|
|
100
|
100
|
// Set the flag and pointer for a parameter
|
101
|
|
- static void set(const char c, char * const ptr
|
102
|
|
- #if ENABLED(DEBUG_GCODE_PARSER)
|
103
|
|
- , const bool debug=false
|
104
|
|
- #endif
|
105
|
|
- ) {
|
|
101
|
+ static void set(const char c, char * const ptr) {
|
106
|
102
|
const uint8_t ind = LETTER_OFF(c);
|
107
|
103
|
if (ind >= COUNT(param)) return; // Only A-Z
|
108
|
104
|
SBI(codebits[PARAM_IND(ind)], PARAM_BIT(ind)); // parameter exists
|
109
|
105
|
param[ind] = ptr ? ptr - command_ptr : 0; // parameter offset or 0
|
110
|
106
|
#if ENABLED(DEBUG_GCODE_PARSER)
|
111
|
|
- if (debug) {
|
|
107
|
+ if (codenum == 800) {
|
112
|
108
|
SERIAL_ECHOPAIR("Set bit ", (int)PARAM_BIT(ind));
|
113
|
109
|
SERIAL_ECHOPAIR(" of index ", (int)PARAM_IND(ind));
|
114
|
110
|
SERIAL_ECHOLNPAIR(" | param = ", (int)param[ind]);
|