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 <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2015-01-21 08:52:28 +01:00 committed by Dirk Hohndel
parent e8b02d3b2a
commit e0c0ba4836
2 changed files with 3 additions and 1 deletions

View file

@ -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)