Change parser codebits from array to int32_t
This commit is contained in:
parent
1b84807eb0
commit
59b5800e58
2 changed files with 16 additions and 19 deletions
|
|
@ -53,7 +53,7 @@ int GCodeParser::codenum;
|
|||
|
||||
#if ENABLED(FASTER_GCODE_PARSER)
|
||||
// Optimized Parameters
|
||||
byte GCodeParser::codebits[4]; // found bits
|
||||
uint32_t GCodeParser::codebits; // found bits
|
||||
uint8_t GCodeParser::param[26]; // parameter offsets from command_ptr
|
||||
#else
|
||||
char *GCodeParser::command_args; // start of parameters
|
||||
|
|
@ -76,7 +76,7 @@ void GCodeParser::reset() {
|
|||
subcode = 0; // No command sub-code
|
||||
#endif
|
||||
#if ENABLED(FASTER_GCODE_PARSER)
|
||||
ZERO(codebits); // No codes yet
|
||||
codebits = 0; // No codes yet
|
||||
//ZERO(param); // No parameters (should be safe to comment out this line)
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue