* Clear all code-seen (and value pointers) * * Since each param is set/cleared on seen codes, * this may be optimized by commenting out ZERO(param) */
| 76 | * this may be optimized by commenting out ZERO(param) |
| 77 | */ |
| 78 | void GCodeParser::reset() { |
| 79 | string_arg = nullptr; // No whole line argument |
| 80 | command_letter = '?'; // No command letter |
| 81 | codenum = 0; // No command code |
| 82 | TERN_(USE_GCODE_SUBCODES, subcode = 0); // No command sub-code |
| 83 | #if ENABLED(FASTER_GCODE_PARSER) |
| 84 | codebits = 0; // No codes yet |
| 85 | //ZERO(param); // No parameters (should be safe to comment out this line) |
| 86 | #endif |
| 87 | } |
| 88 | |
| 89 | #if ENABLED(GCODE_QUOTED_STRINGS) |
| 90 |
no outgoing calls