维护工具,本地升级不再通过文件名判断版本号,而是直接升级

This commit is contained in:
yangjiaxuan 2023-11-08 16:36:26 +08:00
parent 52788757b0
commit 5bf5679e25
1 changed files with 4 additions and 2 deletions

View File

@ -694,9 +694,11 @@ void MainWindow::on_btnOpenFilePath_clicked()
HGBase_GetFileName(filePath.toStdString().c_str(), fileName, 256); HGBase_GetFileName(filePath.toStdString().c_str(), fileName, 256);
HGChar fileVersion[256] = {0}; HGChar fileVersion[256] = {0};
HGBase_GetFilePrefix(fileName, fileVersion, 256); 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); QMessageBox msg(QMessageBox::Information, tr("tips"), tr("the selected firmware is not newer than the current version"), QMessageBox::Ok, this);
msg.exec(); msg.exec();