diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2017-05-07 16:27:41 +0300 |
---|---|---|
committer | Miika Turkia <miika.turkia@gmail.com> | 2017-05-07 16:27:41 +0300 |
commit | c832973df5a8b22ea58bafba088835592aca632e (patch) | |
tree | 243897040f234f0c0bbe14d7c331e50f17062455 /core | |
parent | d851549d9ce33f7a9c2329ab19efbf40dd56b8de (diff) | |
download | subsurface-c832973df5a8b22ea58bafba088835592aca632e.tar.gz |
Fix NDL and TTS for Seabear import
Apparently the refactoring changed these values to be returned directly
in seconds. Not sure why, but luckily we have test cases that discovered
the change.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/file.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/core/file.c b/core/file.c index 6dc082fc7..cde47cfef 100644 --- a/core/file.c +++ b/core/file.c @@ -1065,13 +1065,6 @@ int parse_seabear_log(const char *filename) if (parse_seabear_csv_file(filename, params, pnr, "csv") < 0) { return -1; } - // Seabear CSV stores NDL and TTS in Minutes, not seconds - struct dive *dive = dive_table.dives[dive_table.nr - 1]; - for(int s_nr = 0 ; s_nr < dive->dc.samples ; s_nr++) { - struct sample *sample = dive->dc.sample + s_nr; - sample->ndl.seconds *= 60; - sample->tts.seconds *= 60; - } return 0; } |