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
_______________________________________________
subsurface mailing list
subsurface@hohndel.org
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to