mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
OP-1174 uploader gadget - removed deprecated code and minor renaming
This commit is contained in:
parent
fababeeeee
commit
9132e3d44f
@ -289,9 +289,9 @@ void UploaderGadgetWidget::onAutopilotDisconnect()
|
||||
|
||||
static void sleep(int ms)
|
||||
{
|
||||
QEventLoop eventloop;
|
||||
QTimer::singleShot(ms, &eventloop, SLOT(quit()));
|
||||
eventloop.exec();
|
||||
QEventLoop eventLoop;
|
||||
QTimer::singleShot(ms, &eventLoop, SLOT(quit()));
|
||||
eventLoop.exec();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -692,7 +692,7 @@ bool UploaderGadgetWidget::autoUpdate()
|
||||
}
|
||||
QEventLoop eventLoop;
|
||||
firmware = file.readAll();
|
||||
connect(dfu, SIGNAL(progressUpdated(int)), this, SLOT(autoUpdateProgress(int)));
|
||||
connect(dfu, SIGNAL(progressUpdated(int)), this, SLOT(autoUpdateFlashProgress(int)));
|
||||
connect(dfu, SIGNAL(uploadFinished(OP_DFU::Status)), &eventLoop, SLOT(quit()));
|
||||
emit autoUpdateSignal(UPLOADING_FW, QVariant());
|
||||
if (!dfu->enterDFU(0)) {
|
||||
@ -731,11 +731,6 @@ void UploaderGadgetWidget::autoUpdateFlashProgress(int value)
|
||||
emit autoUpdateSignal(UPLOADING_FW, value);
|
||||
}
|
||||
|
||||
void UploaderGadgetWidget::autoUpdateProgress(int value)
|
||||
{
|
||||
autoUpdateFlashProgress(value);
|
||||
}
|
||||
|
||||
/**
|
||||
Attempt a guided procedure to put both boards in BL mode when
|
||||
the system is not bootable
|
||||
|
@ -134,8 +134,6 @@ public slots:
|
||||
bool autoUpdate();
|
||||
void autoUpdateDisconnectProgress(int);
|
||||
void autoUpdateConnectProgress(int);
|
||||
// autoUpdateProgress is deprecated: use autoUpdateFlashProgress instead
|
||||
void autoUpdateProgress(int);
|
||||
void autoUpdateFlashProgress(int);
|
||||
|
||||
signals:
|
||||
|
Loading…
x
Reference in New Issue
Block a user