summaryrefslogtreecommitdiffstats
path: root/configuredivecomputerthreads.cpp
diff options
context:
space:
mode:
authorGravatar Joseph W. Joshua <joejoshw@gmail.com>2014-08-18 01:57:29 +0300
committerGravatar Thiago Macieira <thiago@macieira.org>2014-08-17 14:11:29 -0700
commit7264ec2fa877eeffa99745ac4d7af91b93217aa5 (patch)
tree0d42997d6c69958f7c89f2df664123cc6a7f5130 /configuredivecomputerthreads.cpp
parent1b866e67f3f03347d187d941d51cd35d4c2217ff (diff)
downloadsubsurface-7264ec2fa877eeffa99745ac4d7af91b93217aa5.tar.gz
Change presentation of OSTC 3 firmware version
This change changes the way we present the OSTC 3 firmware version to a correct value, showing the major and minor version number. Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com> Signed-off-by: Thiago Macieira <thiago@macieira.org>
Diffstat (limited to 'configuredivecomputerthreads.cpp')
-rw-r--r--configuredivecomputerthreads.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp
index 093499ad1..0e32f5475 100644
--- a/configuredivecomputerthreads.cpp
+++ b/configuredivecomputerthreads.cpp
@@ -289,8 +289,7 @@ void ReadSettingsThread::run()
if (rc == DC_STATUS_SUCCESS) {
int serial = fData[0] + (fData[1] << 8);
m_deviceDetails->setSerialNo(QString::number(serial));
- int fw = (fData[2] << 8) + fData[3];
- m_deviceDetails->setFirmwareVersion(QString::number(fw));
+ m_deviceDetails->setFirmwareVersion(QString::number(fData[2]) + "." + QString::number(fData[3]));
QByteArray ar((char *)fData + 4, 60);
m_deviceDetails->setCustomText(ar.trimmed());
}