维护工具,本地升级不再通过文件名判断版本号,而是直接升级
This commit is contained in:
parent
52788757b0
commit
5bf5679e25
|
@ -694,9 +694,11 @@ void MainWindow::on_btnOpenFilePath_clicked()
|
|||
HGBase_GetFileName(filePath.toStdString().c_str(), fileName, 256);
|
||||
HGChar fileVersion[256] = {0};
|
||||
HGBase_GetFilePrefix(fileName, fileVersion, 256);
|
||||
if (devType == GetDevType(fileVersion, NULL))
|
||||
//if (devType == GetDevType(fileVersion, NULL))
|
||||
if (1)
|
||||
{
|
||||
if (m_curFwVersion >= fileVersion)
|
||||
//if (m_curFwVersion >= fileVersion)
|
||||
if (1)
|
||||
{
|
||||
QMessageBox msg(QMessageBox::Information, tr("tips"), tr("the selected firmware is not newer than the current version"), QMessageBox::Ok, this);
|
||||
msg.exec();
|
||||
|
|
Loading…
Reference in New Issue