Partial push of Josh's configure-dive-computer GSoC project
Jef Driesen
jef at libdivecomputer.org
Thu Aug 14 04:08:10 PDT 2014
On 2014-08-14 12:15, Anton Lundin wrote:
> Firmware version looks bogus. It says 286 when i have 1.30 currently on
> my ostc3.
It's correct. You only have to decode the number correctly :-)
The value 286 is 0x011E in binary. The highest byte (0x01 or 1) is the
major number of the firmware version, and the lowest byte (0x1E or 30)
is the minor number.
This is encoding is necessary because libdivecomputer always returns the
firmware version as a single integer. Thus somehow the two byte firmware
version needed to be packed as a single number.
Jef
More information about the subsurface
mailing list