From c832973df5a8b22ea58bafba088835592aca632e Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 7 May 2017 16:27:41 +0300 Subject: 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 --- core/file.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'core') 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; } -- cgit v1.2.3-70-g09d2