On Thursday 14 August 2014 13:08:10 Jef Driesen wrote: > 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.
Is that guaranteed to be the same way for all cases? -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel Open Source Technology Center PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 _______________________________________________ subsurface mailing list subsurface@hohndel.org http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface