From 040caaa00b6874e1e93320d4c1c1aa6abba8fee4 Mon Sep 17 00:00:00 2001 From: Guido Lerch Date: Sat, 5 Sep 2015 11:20:13 -0700 Subject: Uemis downloader: parse dive_no as well [Dirk Hohndel: refactored one huge commit into smaller pieces] Signed-off-by: Guido Lerch Signed-off-by: Dirk Hohndel --- uemis-downloader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uemis-downloader.c b/uemis-downloader.c index 16d7811ae..fdaea876a 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -727,6 +727,8 @@ static void parse_tag(struct dive *dive, char *tag, char *val) } else if (!strcmp(tag, "u8SuitThickness")) { if (*suit_thickness[atoi(val)]) uemis_add_string(translate("gettextFromC", suit_thickness[atoi(val)]), &dive->suit); + } else if (!strcmp(tag, "dive_no")) { + dive->number = atoi(val); } } -- cgit v1.2.3-70-g09d2