mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Divinglog import: stop (deco) time added
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2ec9002beb
commit
2ace3195f4
1 changed files with 4 additions and 1 deletions
|
@ -2882,7 +2882,7 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu
|
|||
{
|
||||
int sinterval = 0;
|
||||
unsigned long i, len, lenprofile2 = 0;
|
||||
char *ptr, temp[4], pres[5], hbeat[4], stop[4], ndl[4];
|
||||
char *ptr, temp[4], pres[5], hbeat[4], stop[4], stime[4], ndl[4];
|
||||
short oldcyl = -1;
|
||||
|
||||
/* We do not have samples */
|
||||
|
@ -2953,6 +2953,9 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu
|
|||
memcpy(stop, &data[4][i * 9 + 6], 3);
|
||||
cur_sample->stopdepth.mm = atoi(stop) * 1000;
|
||||
|
||||
memcpy(stime, &data[4][i * 9 + 3], 3);
|
||||
cur_sample->stoptime.seconds = atoi(stime) * 60;
|
||||
|
||||
/*
|
||||
* Following value is NDL when not in deco, and
|
||||
* either 0 or TTS when in deco.
|
||||
|
|
Loading…
Add table
Reference in a new issue