Browse Source

v1.11.1 | 修复dvalueCoefficient 无法被配置的BUG

master
zhaohe 4 months ago
parent
commit
2b08c91088
  1. 2
      appdep/iflytop/core/spdlog/include/spdlog/version.h
  2. 2
      appsrc/baseservice/db/device_ext_setting_dao.cpp
  3. 2
      html/debug/index.html

2
appdep/iflytop/core/spdlog/include/spdlog/version.h

@ -5,6 +5,6 @@
#define SPDLOG_VER_MAJOR 1 #define SPDLOG_VER_MAJOR 1
#define SPDLOG_VER_MINOR 11 #define SPDLOG_VER_MINOR 11
#define SPDLOG_VER_PATCH 0
#define SPDLOG_VER_PATCH 1
#define SPDLOG_VERSION (SPDLOG_VER_MAJOR * 10000 + SPDLOG_VER_MINOR * 100 + SPDLOG_VER_PATCH) #define SPDLOG_VERSION (SPDLOG_VER_MAJOR * 10000 + SPDLOG_VER_MINOR * 100 + SPDLOG_VER_PATCH)

2
appsrc/baseservice/db/device_ext_setting_dao.cpp

@ -39,7 +39,7 @@ DeviceExtSetting DeviceExtSettingDAO::getDeviceExtSetting() { //
setting.canIF = get("canIF", "can0"); setting.canIF = get("canIF", "can0");
setting.deviceId = get("deviceId", ""); setting.deviceId = get("deviceId", "");
setting.printerUartPath = get("printerUartPath", "/dev/ttyS5"); setting.printerUartPath = get("printerUartPath", "/dev/ttyS5");
setting.dvalueCoefficient = get("printerBaudrate", 2);
setting.dvalueCoefficient = get("dvalueCoefficient", 2);
setting.projectTypes = get("projectTypes", ""); setting.projectTypes = get("projectTypes", "");
setting.h2o2SensorExpireTimeMonth = get("h2o2SensorExpireTimeMonth", 12); setting.h2o2SensorExpireTimeMonth = get("h2o2SensorExpireTimeMonth", 12);
setting.deviceType = get("deviceType", ""); setting.deviceType = get("deviceType", "");

2
html/debug/index.html

@ -164,7 +164,7 @@
group = { key: action.className, items: [] }; group = { key: action.className, items: [] };
this.actions.push(group); this.actions.push(group);
} }
item = structuredClone(action);
item = JSON.parse(JSON.stringify(action)); // Replace structuredClone with JSON.parse(JSON.stringify())
item.values = {}; item.values = {};
item.paramInfoMap = {}; item.paramInfoMap = {};
for (let i = 0; i < item.paramsTypeInfo.length; i++) { for (let i = 0; i < item.paramsTypeInfo.length; i++) {

Loading…
Cancel
Save