From 80112f23b4cccdba9b375378127b417954d71e5a Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Thu, 22 Jun 2023 14:54:54 +0200 Subject: [PATCH] Simulate Account (-> because DeviceController ... ... functions currently do not provide usefull results. --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 486254a..d89fb54 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -199,6 +199,10 @@ void ATBDeviceControllerPlugin::private_checkAccountData() // cannot get accountData within ~10*500ms qCritical() << "checkAccountData() failed"; + // simulate: + this->private_getAccountData(); + + // TODO: create and send an HealthEvent... } } @@ -220,6 +224,9 @@ void ATBDeviceControllerPlugin::private_getAccountData() int numberOfCoinVariants = sizeof(retVR.coinsInVault); + // DEBUG + qCritical() << " NumberOfCoinVariants = " << numberOfCoinVariants; + // limit numberOfCoinVariants: if (numberOfCoinVariants > 16) { numberOfCoinVariants = 16; }