|
@ -3,6 +3,7 @@ |
|
|
#include "service/app/add_liquid_service.hpp"
|
|
|
#include "service/app/add_liquid_service.hpp"
|
|
|
#include "service/app/air_leak_detect_test.hpp"
|
|
|
#include "service/app/air_leak_detect_test.hpp"
|
|
|
#include "service/app/disinfection_ctrl/disinfection_ctrl_service.hpp"
|
|
|
#include "service/app/disinfection_ctrl/disinfection_ctrl_service.hpp"
|
|
|
|
|
|
#include "service/app/drain_liquid_service.hpp"
|
|
|
#include "service/hardware/device_io_ctrl_service.hpp"
|
|
|
#include "service/hardware/device_io_ctrl_service.hpp"
|
|
|
|
|
|
|
|
|
using namespace iflytop; |
|
|
using namespace iflytop; |
|
@ -60,7 +61,7 @@ void DeviceCheckPointCheckService::initialize() { // |
|
|
} else if (DS->getDeviceState() == DeviceState::AddingLiquid) { |
|
|
} else if (DS->getDeviceState() == DeviceState::AddingLiquid) { |
|
|
GET_SERVICE(AddLiquidService)->stop(); |
|
|
GET_SERVICE(AddLiquidService)->stop(); |
|
|
} else if (DS->getDeviceState() == DeviceState::DrainingLiquid) { |
|
|
} else if (DS->getDeviceState() == DeviceState::DrainingLiquid) { |
|
|
GET_SERVICE(AddLiquidService)->stop(); |
|
|
|
|
|
|
|
|
GET_SERVICE(DrainLiquidService)->stop(); |
|
|
} else if (DS->getDeviceState() == DeviceState::AirLeakDetectTesting) { |
|
|
} else if (DS->getDeviceState() == DeviceState::AirLeakDetectTesting) { |
|
|
GET_SERVICE(AirLeakDetectTest)->stop(); |
|
|
GET_SERVICE(AirLeakDetectTest)->stop(); |
|
|
} |
|
|
} |
|
@ -75,9 +76,9 @@ vector<CheckPoint> DeviceCheckPointCheckService::getAllCheckPoints() { return ch |
|
|
|
|
|
|
|
|
bool DeviceCheckPointCheckService::isPassed() { |
|
|
bool DeviceCheckPointCheckService::isPassed() { |
|
|
for (auto& checkPoint : checkPoints) { |
|
|
for (auto& checkPoint : checkPoints) { |
|
|
if (checkPoint.passed) { |
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
|
if (!checkPoint.passed) { |
|
|
|
|
|
return false; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
return false; |
|
|
|
|
|
|
|
|
return true; |
|
|
} |
|
|
} |