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()