|
@ -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; |
|
|