From 78c214ceb46231401ce5879d77f99bdb15a446a2 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 29 Apr 2024 14:52:50 +0200 Subject: [PATCH] CHECK_ISMAS_TRIGGER_SUCCESS: send message to ISMAS if WAIT-button as been set to "WAIT". --- UpdatePTUDevCtrl/worker.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/UpdatePTUDevCtrl/worker.h b/UpdatePTUDevCtrl/worker.h index e1e167b..bc66063 100644 --- a/UpdatePTUDevCtrl/worker.h +++ b/UpdatePTUDevCtrl/worker.h @@ -894,10 +894,24 @@ private: } break; case UPDATE_STEP::CHECK_ISMAS_TRIGGER_SUCCESS: { ismasClient.setProgressInPercent(_CHECK_ISMAS_TRIGGER_SUCCESS); - ismasClient.sendRequestReceiveResponse(IsmasClient::APISM::DB_PORT, + QString const &ismasUpdateNews = QString("#M=APISM#C=CMD_EVENT#J=") + - ismasClient.updateTriggerSet("ISMAS TRIGGER SET", - instance->m_versionInfo.size() >= 1 ? instance->m_versionInfo.at(0).toUtf8().constData() : "N/A")); + ismasClient.updateNewsToIsmas( + _ISMAS_CONTINUE, // + _CHECK_ISMAS_TRIGGER_SUCCESS, + (instance->m_updateNotNecessary) + ? IsmasClient::RESULT_CODE::NO_UPDATE_NECESSARY + : IsmasClient::RESULT_CODE::SUCCESS, + smap[UPDATE_STEP::CHECK_ISMAS_TRIGGER_SUCCESS], + instance->m_updateNotNecessary + ? QString("NO-UPDATE-NECESSARY (%1:%2)") + .arg(instance->m_customerRepository) + .arg(instance->m_gc.branchName()).toStdString().c_str() + : QString("ISMAS-TRIGGER ON WAIT").toStdString().c_str(), + instance->m_versionInfo.size() >= 1 + ? instance->m_versionInfo.at(0).toUtf8().constData() : "N/A"); + ismasClient.sendRequestReceiveResponse( + IsmasClient::APISM::DB_PORT, ismasUpdateNews); } break; case UPDATE_STEP::CHECK_ISMAS_TRIGGER_WRONG_VALUE: { ismasClient.setProgressInPercent(_CHECK_ISMAS_TRIGGER_WRONG_VALUE);