|
|
@ -298,7 +298,8 @@ shared_ptr<DisinfectionStateSnapshot> DisinfectionCtrlService::createSnapshot(bo |
|
|
|
snapshot->ecode = 0; |
|
|
|
snapshot->forcelog = forceLog; |
|
|
|
snapshot->isDisinfectionTakeBreak = s_isDisinfectionTakeBreak; |
|
|
|
snapshot->inJectionRate = getSettingAsInt(SettingId::injection_pump_speed); |
|
|
|
|
|
|
|
snapshot->inJectionRate = getSettingAsInt(SettingId::injection_pump_speed); |
|
|
|
return snapshot; |
|
|
|
} |
|
|
|
shared_ptr<DisinfectionStateSnapshot> DisinfectionCtrlService::createErrorSnapshot(int32_t errorcode) { |
|
|
@ -424,6 +425,7 @@ void DisinfectionCtrlService::processStateInit(DisinfectionEvent* event) { |
|
|
|
s_start_steady_tp = zsteady_clock().now(); |
|
|
|
s_afterDisinfectantVolume_g = 0; |
|
|
|
s_beforeDisinfectantVolume_g = dwus->getWeight(); |
|
|
|
s_operator = ds->getLoginName(); |
|
|
|
AppEventBus::ins()->push(make_shared<AppDisinfectionStartEvent>(s_sessionId)); |
|
|
|
GET_SERVICE(WarningLightControler)->setworkFlag(true); |
|
|
|
changeToNextState(); |
|
|
@ -737,6 +739,7 @@ void DisinfectionCtrlService::processStateFinished(DisinfectionEvent* event) { |
|
|
|
statistice->disinfectantVolume_g = s_afterDisinfectantVolume_g - s_beforeDisinfectantVolume_g; |
|
|
|
statistice->tLog = m_tlog; |
|
|
|
statistice->finalLog = s_nlog; |
|
|
|
statistice->deviceOperator = s_operator; |
|
|
|
|
|
|
|
AppEventBus::ins()->push(make_shared<AppDisinfectionFinishedEvent>(s_sessionId, statistice)); |
|
|
|
return; |
|
|
|