From e0c0ba4836a9cac104f1a8c40bb3e9c1da9d8747 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 21 Jan 2015 08:52:28 +0100 Subject: Set divemode to FREEDIVE now when we support that Previous code mapped all our free dive inputs to OC, but now when we actually have a FREEDIVE divemode, we can do better. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- parse-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse-xml.c') diff --git a/parse-xml.c b/parse-xml.c index 92e470c7e..47b4fcc24 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -2577,7 +2577,7 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size) else if (0xd8 <= ptr[15] && ptr[15] <= 0xdf) cur_dc->divemode = CCR; // mCCR else if (0xe0 <= ptr[15] && ptr[15] <= 0xe7) - cur_dc->divemode = OC; // Free diving + cur_dc->divemode = FREEDIVE; else if (0xe8 <= ptr[15] && ptr[15] <= 0xef) cur_dc->divemode = OC; // Gauge else if (0xf0 <= ptr[15] && ptr[15] <= 0xf7) -- cgit v1.2.3-70-g09d2