mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:03:23 +00:00
Fixed off by one error in uemis importer
I clearly had never tried this with a dive that used the "just air" setting the uemis. With this fix the cylinder data for that one tank is read correctly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
312eaed464
commit
831df38e05
1 changed files with 2 additions and 0 deletions
2
uemis.c
2
uemis.c
|
@ -198,6 +198,8 @@ void uemis_parse_divelog_binary(char *base64, void *datap) {
|
|||
gasoffset = template = *(uint8_t *)(data+115);
|
||||
if (template == 3)
|
||||
gasoffset = 4;
|
||||
if (template == 0)
|
||||
template = 1;
|
||||
for (i = 0; i < template; i++) {
|
||||
float volume = *(float *)(data+116+25*(gasoffset + i)) * 1000.0;
|
||||
/* uemis always assumes a working pressure of 202.6bar (!?!?) - I first thought
|
||||
|
|
Loading…
Add table
Reference in a new issue