Start dc_autoRequest() on wokeup

This commit is contained in:
Siegfried Siegert 2024-09-25 12:33:52 +02:00
parent d720c7190f
commit 18104b7271
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03
2 changed files with 3 additions and 0 deletions

View File

@ -1712,6 +1712,7 @@ void ATBDeviceControllerPlugin::onWokeUp(uchar source)
{ {
if (source == 0x01 || source == 0xFE) { if (source == 0x01 || source == 0xFE) {
// woke up from device controller // woke up from device controller
hw->dc_autoRequest(true);
this->diag->diagRequest(); this->diag->diagRequest();
} }
} }

View File

@ -135,6 +135,7 @@ void DeviceControllerDiag::private_startDiag()
qCritical() << "DeviceControllerDiag::private_startDiag() DCdata is +++not+++ valid"; qCritical() << "DeviceControllerDiag::private_startDiag() DCdata is +++not+++ valid";
// try it again // try it again
hw->dc_autoRequest(true);
QTimer::singleShot(200, this, &DeviceControllerDiag::private_startDiag); QTimer::singleShot(200, this, &DeviceControllerDiag::private_startDiag);
} }
} }
@ -164,6 +165,7 @@ void DeviceControllerDiag::sys_superviseSystem()
{ {
// es gibt keinerlei gültige Daten vom DC // es gibt keinerlei gültige Daten vom DC
qCritical() << "DeviceControllerDiag::sys_superviseSystem() no valid data!"; qCritical() << "DeviceControllerDiag::sys_superviseSystem() no valid data!";
hw->dc_autoRequest(true);
this->private_sendDiagEvent(DeviceController::State::E254); this->private_sendDiagEvent(DeviceController::State::E254);
this->diagRequestTimeoutTimer->stop(); this->diagRequestTimeoutTimer->stop();
this->isRequestRunning = false; this->isRequestRunning = false;