[PATCH 2/6] Add reminder for OSTC Sport, re-enable bluetooth

Anton Lundin glance at acc.umu.se
Mon Dec 29 15:25:55 PST 2014


The OSTC Sport exits bluetooth mode after the loogbook download. To
update the firmware in the OSTC Sport, we need it enabled again, so we
gently remind the user about doing that before continuing.

Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 qt-ui/configuredivecomputerdialog.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp
index f30618f..1cbcece 100644
--- a/qt-ui/configuredivecomputerdialog.cpp
+++ b/qt-ui/configuredivecomputerdialog.cpp
@@ -242,6 +242,8 @@ void OstcFirmwareCheck::checkLatest(QWidget *_parent, device_data_t *data)
 		QString message = tr("You should update the firmware on your dive computer: you have version %1 but the latest stable version is %2")
 					  .arg(firmware)
 					  .arg(latestFirmwareAvailable);
+		if (strcmp(data->product, "OSTC Sport") == 0);
+			message += tr("\n\nPlease start bluetooth on your OSTC Sport and do the same perparations as for a loogbook download before continuing with the update");
 		response.addButton(tr("Not now"), QMessageBox::RejectRole);
 		response.addButton(tr("Update firmware"), QMessageBox::AcceptRole);
 		response.setText(message);
-- 
2.1.0



More information about the subsurface mailing list