Browse Source

v3.3.2 | 消毒前检查消毒液是否足够

master
zhaohe 3 weeks ago
parent
commit
8a71d5fd69
  1. 2
      appsrc/appconfig/basic/zappversion.hpp
  2. 12
      appsrc/service/app/disinfection_ctrl/disinfection_ctrl_service.cpp

2
appsrc/appconfig/basic/zappversion.hpp

@ -1,3 +1,3 @@
#pragma once #pragma once
#define VERSION "3.3.1"
#define VERSION "3.3.2"
#define PROJECT_NAME "TRANSMIT_DM" #define PROJECT_NAME "TRANSMIT_DM"

12
appsrc/service/app/disinfection_ctrl/disinfection_ctrl_service.cpp

@ -228,6 +228,18 @@ void DisinfectionCtrlService::startWorkThread() {
THROW_APP_EXCEPTION(err::kappe_sensor_is_pre_hearting, ""); // 传感器正在预热 THROW_APP_EXCEPTION(err::kappe_sensor_is_pre_hearting, ""); // 传感器正在预热
} }
if (PORT.isSupport(HardwareComponent::LiquidWeightPS)) {
if (dwus->getWeight() < 10) {
logger->error("DisinfectantBucket is empty");
THROW_APP_EXCEPTION(err::kappe_disinfectant_insufficient, ""); //
}
} else if (PORT.isSupport(HardwareComponent::LiquidLevelIOSensor)) {
if (dics->LiquidLevelSensor_getLevel() == 0) {
logger->error("DisinfectantBucket is empty");
THROW_APP_EXCEPTION(err::kappe_disinfectant_insufficient, ""); //
}
}
resetState(); resetState();
s_sensorList = onlineSensor; s_sensorList = onlineSensor;
handlePumpStopFlag = false; handlePumpStopFlag = false;

Loading…
Cancel
Save