Jef Driesen d7c59dff58 Adjust the length based on the firmware version.
The OSTC 3 dataformat does contain the profile length twice: once in the
main 256 byte header, and again in the small profile header. However due
to a firmware bug, both values are not identical. The value in the main
header is wrong and 3 bytes larger than the value in the small profile
header. This bug was fixed in firmware version 0.93.

Unfortunately we rely on the length in the main header to calculate the
number of bytes to read when downloading the dive. The consequence is
that for all dives recorded with firmware 0.93 or later, the length is
calculated incorrectly, and the download fails. Luckily the firmware
version is stored in the main header too, and we can adjust the length
calculation accordingly.
2013-05-30 20:52:57 +02:00
..
2012-06-21 21:39:24 +02:00
2013-05-13 23:49:37 +02:00
2013-05-13 23:49:37 +02:00
2012-08-27 23:08:38 +02:00
2012-06-21 21:42:37 +02:00
2013-05-13 23:49:37 +02:00
2013-05-13 23:49:37 +02:00
2013-05-13 23:49:37 +02:00
2012-08-27 23:08:38 +02:00
2013-05-13 19:18:08 +02:00
2013-05-13 19:18:08 +02:00
2013-05-13 19:18:08 +02:00
2013-05-13 23:49:37 +02:00
2013-05-13 23:49:37 +02:00