MDBwake: switch on/off during ModeSELL/ModeSERVICE

This commit is contained in:
Siegfried Siegert 2023-11-30 09:27:57 +01:00
parent f938a75742
commit 30de664991
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -171,11 +171,13 @@ void ATBDeviceControllerPlugin::reset()
void ATBDeviceControllerPlugin::onChangedProgramModeToSELL() void ATBDeviceControllerPlugin::onChangedProgramModeToSELL()
{ {
hw->rtc_setDateTime(); hw->rtc_setDateTime();
hw->mdb_switchWake(0); // wakeup MDB components
} }
void ATBDeviceControllerPlugin::onChangedProgramModeToSERVICE() void ATBDeviceControllerPlugin::onChangedProgramModeToSERVICE()
{ {
//hw->dc_autoRequest(true); //hw->dc_autoRequest(true);
hw->mdb_switchWake(0); // wakeup MDB components
} }
void ATBDeviceControllerPlugin::onChangedProgramModeToIDLE() void ATBDeviceControllerPlugin::onChangedProgramModeToIDLE()
@ -183,6 +185,7 @@ void ATBDeviceControllerPlugin::onChangedProgramModeToIDLE()
//hw->dc_autoRequest(false); // <-- TODO: ??? //hw->dc_autoRequest(false); // <-- TODO: ???
this->diag->diagRequest(); this->diag->diagRequest();
hw->mdb_switchWake(1);
} }