接续上一轮:推进浏览器验证与M428配置收拢
结论:已完成浏览器侧真实加载验证,M428/M429/M430 的配置入口进一步从 LinuxCNC INI/HALFILE/REMAP 来源生成,native 与 source-link 验证通过。
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
#ifdef CNC_SIM_ENABLE_LINUXCNC_RS274_BACKEND
|
||||
#include "linuxcnc_rs274_backend.h"
|
||||
#endif
|
||||
#ifdef CNC_SIM_ENABLE_SMOKE_BACKEND
|
||||
#include "smoke_gcode_parser.h"
|
||||
#endif
|
||||
|
||||
const char *gcode_backend_name(GcodeBackendKind backend) {
|
||||
switch (backend) {
|
||||
@@ -23,8 +25,15 @@ int parse_gcode_with_backend(GcodeBackendKind backend,
|
||||
std::string *error) {
|
||||
switch (backend) {
|
||||
case GcodeBackendKind::Smoke: {
|
||||
#ifdef CNC_SIM_ENABLE_SMOKE_BACKEND
|
||||
SmokeGcodeParser parser(sink);
|
||||
return parser.parse(program, program_len, error);
|
||||
#else
|
||||
if (error) {
|
||||
*error = "smoke backend is not compiled into this build";
|
||||
}
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
case GcodeBackendKind::LinuxCncRs274:
|
||||
#ifdef CNC_SIM_ENABLE_LINUXCNC_RS274_BACKEND
|
||||
|
||||
Reference in New Issue
Block a user