Browse Source

fix some bug

master
zhaohe 1 year ago
parent
commit
e2d7976859
  1. 8
      src/api/cmds/device_state_cmd_impl.cpp
  2. 2
      src/configs/project_setting.hpp

8
src/api/cmds/device_state_cmd_impl.cpp

@ -50,6 +50,11 @@ json DeviceStateCmdImpl::createSensorDataJson() {
// Water immersion sensor
report["disinfectant_volume"] = m_deviceIoControlService->getDisinfectantVolume_g();
report["pressure"][0] = m_deviceIoControlService->getPressureSensorData(1); // 液位
report["pressure"][1] = m_deviceIoControlService->getPressureSensorData(2); // 空压机压力
report["pressure"][2] = m_deviceIoControlService->getPressureSensorData(3); // 加液泵
report["pressure"][3] = m_deviceIoControlService->getPressureSensorData(4); // 喷射泵
#if (defined PROJECT_TYPE_PIPE_DISINFECTION)
report["AirInletProportionalValve"]["state"] = m_deviceIoControlService->AirInletProportionalValve_getState();
@ -60,6 +65,9 @@ json DeviceStateCmdImpl::createSensorDataJson() {
#endif
#endif
#if (defined PROJECT_TYPE_DRAW_BAR_BOX)

2
src/configs/project_setting.hpp

@ -33,7 +33,7 @@
#endif
#ifdef PROJECT_TYPE_SMALL_SPACE_DISINFECTION
#define DISINFECTANT_BUCKET_CAPACITY 2500
#define DISINFECTANT_BUCKET_CAPACITY 2800
#define PROJECT_NAME "small_space_disinfection"
#define MAX_H2O2_SENSOR_NUM (3)
#define MIN_DISINFECTANT_VOLUME 500

Loading…
Cancel
Save