Automatic OSTC firmware update: download file and try to install

This successfully downloads the hex file.
The actuall update of the OSTC fails before it gets started with a crash
when the ConfigureDiveComputer object is created.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-12-28 10:22:46 -08:00
parent 0be0cdb046
commit 003f5d18b6
3 changed files with 73 additions and 23 deletions

View file

@ -404,7 +404,7 @@ void DownloadFromDCWidget::onDownloadThreadFinished()
MainWindow::instance()->dive_list()->selectDive(idx, true);
QString dcName = data.devname;
if (ostcFirmwareCheck)
ostcFirmwareCheck->checkLatest(this, data.libdc_firmware);
ostcFirmwareCheck->checkLatest(this, &data);
}
} else if (currentState == CANCELLING || currentState == CANCELLED) {
if (import_thread_cancelled) {