FIX:gcodechecker parse new SYNC command

Change-Id: I0c820cd20e6db48951c0bee21f7b729ce55734e6
This commit is contained in:
BBL\chuan.he 2025-01-16 11:43:59 +08:00 committed by lane.wei
parent ff6b49d714
commit 8e3c82e161

View File

@ -336,6 +336,16 @@ GCodeCheckResult GCodeChecker::parse_command(GCodeLine& gcode_line)
flow_ratio = filament_flow_ratio[pt];
break;
}
case 'S': {
if (cmd.compare(0, 4, "SYNC") == 0) {
// Valid SYNC command
}
else {
// Invalid SYNC command
ret = GCodeCheckResult::ParseFailed;
}
break;
}
default: {
//BBS: other g command? impossible! must be invalid
ret = GCodeCheckResult::ParseFailed;