From d4d59dadcf13d7a08db11eec2882f2ff02637ce2 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Fri, 31 Oct 2014 23:06:38 +0200 Subject: Add .txt to notes on MK6 import Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- file.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/file.c b/file.c index ad5b0354d..c22f29f91 100644 --- a/file.c +++ b/file.c @@ -487,6 +487,9 @@ int parse_txt_file(const char *filename, const char *csv) dive->cylinder[cur_cylinder_index].gasmix.he.permille = he * 10; cur_cylinder_index++; + lineptr = strstr(memtxt.buffer, "Dive started at"); + if (lineptr) + dive->notes = strdup(lineptr); dc = &dive->dc; /* -- cgit v1.2.3-70-g09d2