Browse Source

update

storage-in-realtime
zhaohe 12 months ago
parent
commit
730e8aa6f9
  1. 6
      appsrc/appsetting/project_port/basic/gconfig.hpp
  2. 4
      appsrc/appsetting/project_port/project_port.cpp

6
appsrc/appsetting/project_port/basic/gconfig.hpp

@ -15,6 +15,7 @@
#include "iflytop/core/components/config_template/config_template.hpp"
#include "project_constant.hpp"
#define PROJECT_TYPES (string(PROJECT_LARGE_SPACE_DM) + "," + PROJECT_SMALL_SPACE_DM + "," + PROJECT_PIPE_DM + "," + PROJECT_DRAW_BAR_DM)
#define ConfigELEMENT_LIST(marco) \
marco(string /* */, deviceId, "") /*设备ID*/ \
@ -23,8 +24,9 @@
marco(float /* */, dvalueCoefficient, 2) /*数值越小,相对消毒时间越长*/ \
marco(float /* */, disinfectantWeightCorrectionFactor, 0.8500000238418579) /**/ \
marco(string /* */, printerUart, "/dev/ttyS5") /**/ \
marco(string /* */, projectType, PROJECT_LARGE_SPACE_DM) /**/ \
marco(bool /* */, testMode, false) /**/
marco(string /* */, projectTypes, PROJECT_TYPES) /**/ \
marco(string /* */, projectType, "") /**/ \
marco(bool /* */, testMode, false) /**/
configTemplateDEFILE_CONFIG_SERVICE2( //
GConfig, //

4
appsrc/appsetting/project_port/project_port.cpp

@ -34,7 +34,9 @@ void ProjectPort::initialize() {
} else if (gConfig->get_projectType() == PROJECT_DRAW_BAR_DM) {
initProjectSetting(kdraw_bar_disinfection_box);
} else {
THROW_APP_EXCEPTION(err::kappe_code_error, "ProjectPort::initialize: projectType not found");
// THROW_APP_EXCEPTION(err::kappe_code_error, "ProjectPort::initialize: projectType not found");
logger->error("project type not support:{}", gConfig->get_projectType());
exit(-1);
}
}

Loading…
Cancel
Save