From 30de6649910d5a5072be163a9065ceecb5c416d4 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Thu, 30 Nov 2023 09:27:57 +0100 Subject: [PATCH] MDBwake: switch on/off during ModeSELL/ModeSERVICE --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 9c14c17..c81d3a8 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -171,11 +171,13 @@ void ATBDeviceControllerPlugin::reset() void ATBDeviceControllerPlugin::onChangedProgramModeToSELL() { hw->rtc_setDateTime(); + hw->mdb_switchWake(0); // wakeup MDB components } void ATBDeviceControllerPlugin::onChangedProgramModeToSERVICE() { //hw->dc_autoRequest(true); + hw->mdb_switchWake(0); // wakeup MDB components } void ATBDeviceControllerPlugin::onChangedProgramModeToIDLE() @@ -183,6 +185,7 @@ void ATBDeviceControllerPlugin::onChangedProgramModeToIDLE() //hw->dc_autoRequest(false); // <-- TODO: ??? this->diag->diagRequest(); + hw->mdb_switchWake(1); }