mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Document quirks with Ostc 4 versions
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e5fd59feca
commit
b511eb104a
1 changed files with 4 additions and 1 deletions
|
@ -258,8 +258,11 @@ void OstcFirmwareCheck::checkLatest(QWidget *_parent, device_data_t *data)
|
|||
if (latestFirmwareAvailable.isEmpty())
|
||||
return;
|
||||
|
||||
// for now libdivecomputer gives us the firmware on device undecoded as integer
|
||||
// libdivecomputer gives us the firmware on device as an integer
|
||||
// for the OSTC that means highbyte.lowbyte is the version number
|
||||
// For OSTC 4's there is actually a another minor, x.y.Z, but its not
|
||||
// exposed via libdivecomputer, so we won't trigger this update flow
|
||||
// when the Z changes
|
||||
int firmwareOnDevice = devData.libdc_firmware;
|
||||
QString firmwareOnDeviceString = QString("%1.%2").arg(firmwareOnDevice / 256).arg(firmwareOnDevice % 256);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue