add flash sbl

This commit is contained in:
2021-09-21 19:04:29 +03:00
parent 6f53d5097c
commit 3628a30231
7 changed files with 78 additions and 22 deletions

View File

@@ -2,6 +2,10 @@
#define MAINWINDOW_H
#include <QMainWindow>
#include <QProcess>
#include <iostream>
#include <QFile>
#include <QDebug>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
@@ -22,7 +26,34 @@ private slots:
void on_pushButton_flash_pressed();
void print_sbl();
void started_sbl();
void finished_sbl();
private:
int flash_sbl();
Ui::MainWindow *ui;
QProcess *flash = new QProcess(this);
QString FlashAwr_arg;
QString can;
QString serial_stm;
QString serial_radar;
QString FlashAwr;
QString file_sbl;
QString awrcanflasher;
QString file_firemware;
};
#endif // MAINWINDOW_H