Index: sources/ApplicationController.cpp =================================================================== diff -u -rc9f8f8cf3c6c37fc6460d8675c62c9442c4d4263 -r20b370a54d2737831b307a0de82aec9e06e2b772 --- sources/ApplicationController.cpp (.../ApplicationController.cpp) (revision c9f8f8cf3c6c37fc6460d8675c62c9442c4d4263) +++ sources/ApplicationController.cpp (.../ApplicationController.cpp) (revision 20b370a54d2737831b307a0de82aec9e06e2b772) @@ -364,24 +364,28 @@ { // DEBUG: return; #ifndef DISABLE_KEEP_ALIVE - QVariantList mData; - int mFakeDataLen = gFakeData.length(); - // coco begin validated: This is a fake data generator for CANBus missing/swapped frames Testing - // will never be executed on the product - // has been tested manually - if (mFakeDataLen) { - if (gFakeSeqAtBegin) { - createFakeSeqAtBeginLongMessage(mData, mFakeDataLen); + // Update can disable this message from being sent and + // the queueing up a possible response expectation. + if (_keepAlive) { + QVariantList mData; + int mFakeDataLen = gFakeData.length(); + // coco begin validated: This is a fake data generator for CANBus missing/swapped frames Testing + // will never be executed on the product + // has been tested manually + if (mFakeDataLen) { + if (gFakeSeqAtBegin) { + createFakeSeqAtBeginLongMessage(mData, mFakeDataLen); + } + else { + createFakeSequencedLongMessage (mData, mFakeDataLen); + } } + // disabled coco end else { - createFakeSequencedLongMessage (mData, mFakeDataLen); + mData += static_cast(GuiActionData::NoData); } + onActionTransmit(GuiActionType::ID_KeepAlive, mData); } - // disabled coco end - else { - mData += static_cast(GuiActionData::NoData); - } - onActionTransmit(GuiActionType::ID_KeepAlive, mData); #endif } @@ -514,6 +518,11 @@ emit didSettingsInit({}); } +void ApplicationController::enableKeepAlive(bool vTurnOn) { + _keepAlive = vTurnOn; +} + + /*! * \brief ApplicationController::onSettingsInit * \details The slot which will be called to start the settings initialization in Application thread. @@ -594,6 +603,7 @@ * \details Sends the POST Final message */ void ApplicationController::onPOSTDone(bool vPass) { + emit didPOSTDone(vPass); // Used by Update SW. AdjustUIPostFinalResultRequestData data; data.mResult = vPass; emit didAdjustment(data);