From 213384e042fdc511cf3f767faa294140fd6ee058 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 12 Jul 2025 20:03:48 +0800 Subject: [PATCH] append --- appsrc/service/setting/device_ext_setting_mgr_service.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appsrc/service/setting/device_ext_setting_mgr_service.cpp b/appsrc/service/setting/device_ext_setting_mgr_service.cpp index 0a796e1..90260f4 100644 --- a/appsrc/service/setting/device_ext_setting_mgr_service.cpp +++ b/appsrc/service/setting/device_ext_setting_mgr_service.cpp @@ -84,6 +84,10 @@ void DeviceExtSettingMgrService::initialize() { REG_EXTFN_VOID(factoryResetDevice, void(void)); // REG_EXTFN_VOID_DISPNAME(factoryResetDevice, "恢复出长设置(程序会重启)"); + if (!PORT.isDeviceTypeInited()) { + return; + } + REG_LINE("Setting限制"); REG_EXTFN(setMaxInjectVelGPMLimit, void(int), val); REG_EXTFN_DISPNAME(setMaxInjectVelGPMLimit, "最大注射速度限制(GPM)", "val");