From 39f575ceead30da17dfaad064d96a834fd74bb79 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Thu, 3 Aug 2023 09:10:44 +0200 Subject: [PATCH] Send machine data on startup/init to DeviceController --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 906d1ad..c552178 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -4,6 +4,7 @@ #include "src/ATBAPP/Utils.h" #include "src/ATBAPP/support/JSON.h" #include "src/ATBAPP/support/DBusControllerInterface.h" +#include "src/ATBAPP/support/PTUSystem.h" #include #include @@ -80,6 +81,11 @@ PLUGIN_STATE ATBDeviceControllerPlugin::initDCPlugin(QObject *eventReceiver, con hw->dc_autoRequest(true); + hw->dc_setNewCustomerNumber(PTUSystem::readCustomerNumber()); + hw->dc_setNewMachineNumber(PTUSystem::readMachineNumber()); + hw->dc_setNewZone(PTUSystem::readZoneNumber()); + hw->dc_setNewBorough(PTUSystem::readGroupNumber()); + hw->rtc_setDateTime(); // this is necessary to init the CashAgentLib (!)