G92, subcodes flag cleanup

This commit is contained in:
Scott Lahteine
2021-02-23 16:08:00 -06:00
parent ba301fd800
commit 27f9437d31
4 changed files with 52 additions and 39 deletions

View File

@@ -47,13 +47,13 @@ char *GCodeParser::command_ptr,
char GCodeParser::command_letter;
uint16_t GCodeParser::codenum;
#if ENABLED(USE_GCODE_SUBCODES)
#if USE_GCODE_SUBCODES
uint8_t GCodeParser::subcode;
#endif
#if ENABLED(GCODE_MOTION_MODES)
int16_t GCodeParser::motion_mode_codenum = -1;
#if ENABLED(USE_GCODE_SUBCODES)
#if USE_GCODE_SUBCODES
uint8_t GCodeParser::motion_mode_subcode;
#endif
#endif
@@ -189,7 +189,7 @@ void GCodeParser::parse(char *p) {
}
// Allow for decimal point in command
#if ENABLED(USE_GCODE_SUBCODES)
#if USE_GCODE_SUBCODES
if (*p == '.') {
p++;
while (NUMERIC(*p))