Trigger diagRequest() on MODE SERVICE => MODE OOO

This commit is contained in:
Siegfried Siegert 2025-07-23 09:24:24 +02:00
parent cc27b982ff
commit 577411289e
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -312,6 +312,12 @@ void ATBDeviceControllerPlugin::onChangedProgramModeToIDLE()
void ATBDeviceControllerPlugin::onChangedProgramModeToOOO() void ATBDeviceControllerPlugin::onChangedProgramModeToOOO()
{ {
// trigger diagRequest on SERVICE -> IDLE
if (this->currentProgramMode == PROGRAM_MODE::SERVICE) {
hw->dc_autoRequest(true);
this->diag->diagRequest();
hw->mdb_switchWake(1);
}
this->currentProgramMode = PROGRAM_MODE::OOO; this->currentProgramMode = PROGRAM_MODE::OOO;
} }