@@ -3280,22 +3280,25 @@ bool MPDevice::generateSavePackets(AsyncJobs *jobs, bool tackleCreds, bool tackl
3280
3280
3281
3281
/* We need to diff cpz ctr values for firmwares running < v1.2 */
3282
3282
/* Diff: cpzctr values can only be added by design */
3283
- for (qint32 i = 0 ; i < cpzCtrValue. length (); i++ )
3283
+ if (! isBLE () )
3284
3284
{
3285
- bool cpzCtrFound = false ;
3286
- for (qint32 j = 0 ; j < cpzCtrValueClone.length (); j++)
3285
+ for (qint32 i = 0 ; i < cpzCtrValue.length (); i++)
3287
3286
{
3288
- if (cpzCtrValue[i] == cpzCtrValueClone[j])
3287
+ bool cpzCtrFound = false ;
3288
+ for (qint32 j = 0 ; j < cpzCtrValueClone.length (); j++)
3289
3289
{
3290
- cpzCtrFound = true ;
3291
- break ;
3290
+ if (cpzCtrValue[i] == cpzCtrValueClone[j])
3291
+ {
3292
+ cpzCtrFound = true ;
3293
+ break ;
3294
+ }
3295
+ }
3296
+ if (!cpzCtrFound)
3297
+ {
3298
+ qDebug () << " Adding missing cpzctr" ;
3299
+ diagSavePacketsGenerated = true ;
3300
+ jobs->append (new MPCommandJob (this , MPCmd::ADD_CARD_CPZ_CTR, cpzCtrValue[i], pMesProt->getDefaultFuncDone ()));
3292
3301
}
3293
- }
3294
- if (!cpzCtrFound)
3295
- {
3296
- qDebug () << " Adding missing cpzctr" ;
3297
- diagSavePacketsGenerated = true ;
3298
- jobs->append (new MPCommandJob (this , MPCmd::ADD_CARD_CPZ_CTR, cpzCtrValue[i], pMesProt->getDefaultFuncDone ()));
3299
3302
}
3300
3303
}
3301
3304
@@ -5327,23 +5330,26 @@ void MPDevice::startImportFileMerging(const MPDeviceProgressCb &cbProgress, Mess
5327
5330
/* We arrive here knowing that the CPZ is in the CPZ/CTR list */
5328
5331
qInfo () << " Starting File Merging..." ;
5329
5332
5330
- // / Know if we need to add CPZ CTR packets (additive process)
5331
- for (qint32 i = 0 ; i < importedCpzCtrValue.size (); i++)
5333
+ if (!isBLE ())
5332
5334
{
5333
- bool cpzFound = false ;
5334
- for (qint32 j = 0 ; j < cpzCtrValue .size (); j ++)
5335
+ // / Know if we need to add CPZ CTR packets (additive process)
5336
+ for (qint32 i = 0 ; i < importedCpzCtrValue .size (); i ++)
5335
5337
{
5336
- if (cpzCtrValue[j] == importedCpzCtrValue[i])
5338
+ bool cpzFound = false ;
5339
+ for (qint32 j = 0 ; j < cpzCtrValue.size (); j++)
5337
5340
{
5338
- cpzFound = true ;
5339
- break ;
5341
+ if (cpzCtrValue[j] == importedCpzCtrValue[i])
5342
+ {
5343
+ cpzFound = true ;
5344
+ break ;
5345
+ }
5340
5346
}
5341
- }
5342
5347
5343
- if (!cpzFound)
5344
- {
5345
- qDebug () << " CPZ CTR not in our DB: " << importedCpzCtrValue[i].toHex ();
5346
- cpzCtrValue.append (importedCpzCtrValue[i]);
5348
+ if (!cpzFound)
5349
+ {
5350
+ qDebug () << " CPZ CTR not in our DB: " << importedCpzCtrValue[i].toHex ();
5351
+ cpzCtrValue.append (importedCpzCtrValue[i]);
5352
+ }
5347
5353
}
5348
5354
}
5349
5355
0 commit comments