Try to process the origin output(in hf mf nested)

pull/2/head
wh201906 5 years ago
parent 5d793eb764
commit 4aa5654ffd

@ -158,3 +158,22 @@ void MainWindow::on_MFChkButton_clicked()
}
qDebug()<<"***********\n"<<keys<<"***********\n";
}
void MainWindow::on_MFNestedButton_clicked()
{
pm3->setRequiringOutput(true);
ui->commandEdit->setText("hf mf nested 1 *");
on_sendButton_clicked();
while(pm3->waitForReadyRead(5000))
;
QString result=pm3->getRequiredOutput();
pm3->setRequiringOutput(false);
result=result.mid(result.indexOf("|---|----------------|---|----------------|---|"));
QStringList keys=result.split("\r\n");
for(int i=0;i<16;i++)
{
ui->MFKeyWidget->setItem(i,1,new QTableWidgetItem(keys[i+3].mid(7,12).trimmed().toUpper()));
ui->MFKeyWidget->setItem(i,2,new QTableWidgetItem(keys[i+3].mid(28,12).trimmed().toUpper()));
}
qDebug()<<"***********\n"<<keys<<"***********\n";
}

@ -43,6 +43,8 @@ private slots:
void on_MFChkButton_clicked();
void on_MFNestedButton_clicked();
private:
Ui::MainWindow *ui;
PM3Process* pm3;

Loading…
Cancel
Save