The list of OSTC devices have grown, and this updates our lists of for
which devices we should check for firmware updates.

Signed-off-by: Anton Lundin <[email protected]>
---
 desktop-widgets/configuredivecomputerdialog.cpp | 2 +-
 desktop-widgets/downloadfromdivecomputer.cpp    | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/desktop-widgets/configuredivecomputerdialog.cpp 
b/desktop-widgets/configuredivecomputerdialog.cpp
index 79cdcaf..27e385d 100644
--- a/desktop-widgets/configuredivecomputerdialog.cpp
+++ b/desktop-widgets/configuredivecomputerdialog.cpp
@@ -227,7 +227,7 @@ OstcFirmwareCheck::OstcFirmwareCheck(QString product) : 
parent(0)
 {
        QUrl url;
        memset(&devData, 1, sizeof(devData));
-       if (product == "OSTC 3") {
+       if (product == "OSTC 3" || product == "OSTC 3+" || product == "OSTC 
Cr") {
                url = 
QUrl("http://www.heinrichsweikamp.net/autofirmware/ostc3_changelog.txt";);
                latestFirmwareHexFile = 
QString("http://www.heinrichsweikamp.net/autofirmware/ostc3_firmware.hex";);
        } else if (product == "OSTC Sport") {
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp 
b/desktop-widgets/downloadfromdivecomputer.cpp
index 4570a3b..2fa68b5 100644
--- a/desktop-widgets/downloadfromdivecomputer.cpp
+++ b/desktop-widgets/downloadfromdivecomputer.cpp
@@ -366,7 +366,8 @@ void 
DownloadFromDCWidget::on_downloadCancelRetryButton_clicked()
        thread->start();
 
        QString product(ui.product->currentText());
-       if (product == "OSTC 3" || product == "OSTC Sport")
+       if (product == "OSTC 3" || product == "OSTC 3+" ||
+                       product == "OSTC Cr" || product == "OSTC Sport")
                ostcFirmwareCheck = new OstcFirmwareCheck(product);
 }
 
-- 
2.9.3

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to