Fix: finish diag on right place

This commit is contained in:
Siegfried Siegert 2023-07-27 14:36:06 +02:00
parent 94d22c3bb5
commit 4187d8044d
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -301,6 +301,13 @@ void DeviceControllerDiag::sub_componentAssessment()
if (flag_sendOperate) { if (flag_sendOperate) {
this->private_sendDiagEvent(DeviceController::State::O000); this->private_sendDiagEvent(DeviceController::State::O000);
} }
// finish diag
this->diagRequestTimeoutTimer->stop();
this->isRequestRunning = false;
this->flagInterruptDiag = false;
} }
@ -315,10 +322,6 @@ void DeviceControllerDiag::sub_componentAssessment()
*/ */
void DeviceControllerDiag::private_sendDiagEvent(DeviceController::State result) void DeviceControllerDiag::private_sendDiagEvent(DeviceController::State result)
{ {
this->diagRequestTimeoutTimer->stop();
this->isRequestRunning = false;
this->flagInterruptDiag = false;
qCritical() << "DeviceControllerDiag::private_sendDiagEvent() result: " << result; qCritical() << "DeviceControllerDiag::private_sendDiagEvent() result: " << result;