mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-07-31 01:52:03 +08:00
FIX:gcodechecker parse new SYNC command
Change-Id: I0c820cd20e6db48951c0bee21f7b729ce55734e6
This commit is contained in:
parent
ff6b49d714
commit
8e3c82e161
@ -336,6 +336,16 @@ GCodeCheckResult GCodeChecker::parse_command(GCodeLine& gcode_line)
|
|||||||
flow_ratio = filament_flow_ratio[pt];
|
flow_ratio = filament_flow_ratio[pt];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'S': {
|
||||||
|
if (cmd.compare(0, 4, "SYNC") == 0) {
|
||||||
|
// Valid SYNC command
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Invalid SYNC command
|
||||||
|
ret = GCodeCheckResult::ParseFailed;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
//BBS: other g command? impossible! must be invalid
|
//BBS: other g command? impossible! must be invalid
|
||||||
ret = GCodeCheckResult::ParseFailed;
|
ret = GCodeCheckResult::ParseFailed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user