MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / reset

Method reset

Marlin/src/gcode/parser.cpp:78–87  ·  view source on GitHub ↗

* 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) */

Source from the content-addressed store, hash-verified

76 * this may be optimized by commenting out ZERO(param)
77 */
78void 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

Callers 15

startOrResumeJobFunction · 0.45
DMethod · 0.45
M502Method · 0.45
G92Method · 0.45
auto_tune_aFunction · 0.45
G33Method · 0.45
normalize_hotend_offsetsFunction · 0.45
M423Method · 0.45
G26Method · 0.45
G29.cppFile · 0.45
M412Method · 0.45
G60Method · 0.45

Calls

no outgoing calls

Tested by 1

MARLIN_TESTFunction · 0.36