mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
DLF import: Set initial gas as first cylinder
Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
parent
1ad872ac5f
commit
015bd43c25
1 changed files with 4 additions and 0 deletions
|
@ -1731,6 +1731,10 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size, struct dive_table *tabl
|
||||||
cur_dc->maxdepth.mm = ((ptr[21] << 8) + ptr[20]) * 10;
|
cur_dc->maxdepth.mm = ((ptr[21] << 8) + ptr[20]) * 10;
|
||||||
cur_dc->surface_pressure.mbar = ((ptr[25] << 8) + ptr[24]) / 10;
|
cur_dc->surface_pressure.mbar = ((ptr[25] << 8) + ptr[24]) / 10;
|
||||||
|
|
||||||
|
// Declare initial mix as first cylinder
|
||||||
|
cur_dive->cylinder[0].gasmix.o2.permille = ptr[26] * 10;
|
||||||
|
cur_dive->cylinder[0].gasmix.he.permille = ptr[27] * 10;
|
||||||
|
|
||||||
/* Done with parsing what we know about the dive header */
|
/* Done with parsing what we know about the dive header */
|
||||||
ptr += 32;
|
ptr += 32;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue