From f2637e3af8062e57eb648c574cc133b1ca336e48 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Thu, 15 Jun 2023 09:48:25 +0200 Subject: [PATCH] dc_autoRequest is allways switched on --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 7377ee3..8d8bb33 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -54,6 +54,8 @@ PLUGIN_STATE ATBDeviceControllerPlugin::initDCPlugin(QObject *healthEventReceive // open serial port hw->dc_openSerial(5, "115200", serialPort, 1); + hw->dc_autoRequest(true); + hw->rtc_setDateTime(); @@ -72,17 +74,17 @@ PLUGIN_STATE ATBDeviceControllerPlugin::initDCPlugin(QObject *healthEventReceive void ATBDeviceControllerPlugin::onChangedProgramModeToSELL() { - hw->dc_autoRequest(true); + //hw->dc_autoRequest(true); } void ATBDeviceControllerPlugin::onChangedProgramModeToSERVICE() { - hw->dc_autoRequest(true); + //hw->dc_autoRequest(true); } void ATBDeviceControllerPlugin::onChangedProgramModeToIDLE() { - hw->dc_autoRequest(false); // <-- TODO: ??? + //hw->dc_autoRequest(false); // <-- TODO: ??? } void ATBDeviceControllerPlugin::onChangedProgramModeToOOO()