removed PrefixPath debug line
[opentx.git] / companion / src / fusesdialog.cpp
blob43df63123113554c9787d8436c5b17a0656d6a36
1 #include "fusesdialog.h"
2 #include "ui_fusesdialog.h"
3 #include "helpers.h"
4 #include "progressdialog.h"
5 #include "radiointerface.h"
7 FusesDialog::FusesDialog(QWidget *parent) :
8 QDialog(parent),
9 ui(new Ui::FusesDialog)
11 ui->setupUi(this);
12 setWindowIcon(CompanionIcon("fuses.png"));
15 FusesDialog::~FusesDialog()
17 delete ui;
20 void FusesDialog::on_resetFuses_EEprotect_clicked()
22 ProgressDialog progressDialog(this, tr("Reset Radio Fuses"), CompanionIcon("fuses.png"), true);
23 return resetAvrdudeFuses(true, progressDialog.progress());
26 void FusesDialog::on_resetFuses_EEdelete_clicked()
28 ProgressDialog progressDialog(this, tr("Reset Radio Fuses"), CompanionIcon("fuses.png"), true);
29 return resetAvrdudeFuses(false, progressDialog.progress());
32 void FusesDialog::on_readFuses_clicked()
34 ProgressDialog progressDialog(this, tr("Read Fuses from Radio"), CompanionIcon("fuses.png"), true);
35 return readAvrdudeFuses(progressDialog.progress());