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");