Fix: account number

This commit is contained in:
Siegfried Siegert 2023-07-19 20:43:48 +02:00
parent da7058a9bd
commit 3c235d2ec1
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -219,7 +219,7 @@ void ATBDeviceControllerPlugin::private_startAccount()
qCritical() << "Start account: ";
qCritical() << " nrOfVals = " << nrOfVals;
for (int i=0; i<nrOfVals; ++i) {
qCritical() << " backupedAccNumbers[" << i << "] = " << backupedAccNumbers[0];
qCritical() << " backupedAccNumbers[" << i << "] = " << backupedAccNumbers[i];
}
qsort( backupedAccNumbers, nrOfVals, sizeof (uint16_t), Utils::compare );
@ -230,7 +230,7 @@ void ATBDeviceControllerPlugin::private_startAccount()
// DEBUG
qCritical() << " latestAccountNumber = " << latestAccountNumber;
hw->log_selectVaultRecord(latestAccountNumber);
hw->log_selectVaultRecord(latestAccountNumber - 1);
this->accountCheckCounter = 0;
QTimer::singleShot(500, this, SLOT(private_checkAccountData()));