Shorten the waitTime for execCMDWithOutput()

This commit is contained in:
wh201906
2020-08-12 12:30:15 +08:00
parent a7985c5c89
commit 862f0775f8
5 changed files with 61 additions and 10 deletions
+4 -3
View File
@@ -119,7 +119,7 @@ void Mifare::chk()
"hf mf chk *"
+ QString::number(cardType.type)
+ " ?",
1000 + cardType.type * 1000);
Util::ReturnTrigger(1000 + cardType.sector_size * 200, {"No valid", "\\|---\\|----------------\\|----------------\\|"}));
qDebug() << result;
int offset = 0;
@@ -183,7 +183,8 @@ void Mifare::nested()
result = util->execCMDWithOutput(
"hf mf nested "
+ QString::number(cardType.type)
+ " *", 10000);
+ " *",
Util::ReturnTrigger(10000, {"Can't found", "\\|000\\|"}));
}
else if(util->getClientType() == Util::CLIENTTYPE_ICEMAN)
{
@@ -624,7 +625,7 @@ void Mifare::writeSelected(TargetType targetType)
continue;
else if(choice == QMessageBox::YesToAll)
yes2All = true;
else if(QMessageBox::NoToAll)
else if(choice == QMessageBox::NoToAll)
{
no2All = true;
continue;