|
|
@ -27,6 +27,7 @@ shared_ptr<AlertWarningContext> DeviceAlertDetectorService::getAlertWarningConte |
|
|
|
} |
|
|
|
|
|
|
|
void DeviceAlertDetectorService::detectAndProcessDeviceBottomWaterDetectAlert() { |
|
|
|
#if (defined PROJECT_TYPE_LARGE_SPACE_DISINFECTION) || (defined PROJECT_TYPE_SMALL_SPACE_DISINFECTION) || (defined PROJECT_TYPE_PIPE_DISINFECTION)
|
|
|
|
auto context = getAlertWarningContext(kDeviceBottomWaterDetectAlert); |
|
|
|
if (!context->getTriggerFlag()) { |
|
|
|
if (m_deviceIoControlService->getDeviceBottomWaterDetectionSensor()) { |
|
|
@ -50,8 +51,11 @@ void DeviceAlertDetectorService::detectAndProcessDeviceBottomWaterDetectAlert() |
|
|
|
context->setTriggerFlag(false); |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
} |
|
|
|
void DeviceAlertDetectorService::detectAndProcessDeviceEvaporationBinWaterDetectAlert() { |
|
|
|
#if (defined PROJECT_TYPE_LARGE_SPACE_DISINFECTION) || (defined PROJECT_TYPE_SMALL_SPACE_DISINFECTION) || (defined PROJECT_TYPE_PIPE_DISINFECTION)
|
|
|
|
|
|
|
|
auto context = getAlertWarningContext(kDeviceEvaporationBinWaterDetectAlert); |
|
|
|
if (!context->getTriggerFlag()) { |
|
|
|
if (m_deviceIoControlService->getEvaporationBinWaterDetection()) { |
|
|
@ -74,6 +78,7 @@ void DeviceAlertDetectorService::detectAndProcessDeviceEvaporationBinWaterDetect |
|
|
|
context->setTriggerFlag(false); |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
} |
|
|
|
|
|
|
|
void DeviceAlertDetectorService::tryTriggerEvent() { |
|
|
|