mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
1b866e67f3
commit
7264ec2fa8
1 changed files with 1 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue