Send UPDATE_SUCCEEDED (U0001 = 100%) only for user-triggered updates,

not for automatic ones.
This commit is contained in:
Gerhard Hoffmann 2024-05-17 12:19:22 +02:00
parent aaa0f1e76c
commit 5870f61395

View File

@ -1561,17 +1561,19 @@ private:
} break; } break;
case UPDATE_STEP::UPDATE_SUCCEEDED: { case UPDATE_STEP::UPDATE_SUCCEEDED: {
ismasClient.setProgressInPercent(_UPDATE_SUCCEEDED + _UPDATE_SUCCEEDED_CORRECTION); ismasClient.setProgressInPercent(_UPDATE_SUCCEEDED + _UPDATE_SUCCEEDED_CORRECTION);
QString const &ismasUpdateNews = if (instance->m_automaticUpdate == false) {
QString("#M=APISM#C=CMD_EVENT#J=") + QString const &ismasUpdateNews =
ismasClient.updateNewsToIsmas( QString("#M=APISM#C=CMD_EVENT#J=") +
_ISMAS_DONE, // WAIT-button set to 100% ismasClient.updateNewsToIsmas(
ismasClient.getProgressInPercent(), _ISMAS_DONE, // WAIT-button set to 100%
IsmasClient::RESULT_CODE::SUCCESS, ismasClient.getProgressInPercent(),
smap[UPDATE_STEP::UPDATE_FINALIZE], IsmasClient::RESULT_CODE::SUCCESS,
instance->m_ismasMsg.join(' ').toStdString().c_str(), smap[UPDATE_STEP::UPDATE_FINALIZE],
instance->m_versionInfo.size() >= 1 ? instance->m_versionInfo.at(0).toUtf8().constData() : "N/A"); instance->m_ismasMsg.join(' ').toStdString().c_str(),
ismasClient.sendRequestReceiveResponse( instance->m_versionInfo.size() >= 1 ? instance->m_versionInfo.at(0).toUtf8().constData() : "N/A");
IsmasClient::APISM::DB_PORT, ismasUpdateNews); ismasClient.sendRequestReceiveResponse(
IsmasClient::APISM::DB_PORT, ismasUpdateNews);
}
} break; } break;
case UPDATE_STEP::UPDATE_ACTIVATED: { case UPDATE_STEP::UPDATE_ACTIVATED: {
ismasClient.setProgressInPercent(_UPDATE_ACTIVATED + _UPDATE_ACTIVATED_CORRECTION); ismasClient.setProgressInPercent(_UPDATE_ACTIVATED + _UPDATE_ACTIVATED_CORRECTION);