Record the cylinder idx on DLF gaschange

Use the new and fancy cylinder idx to record which cylinder we change to
on the DLF import.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2014-12-30 17:05:51 +01:00 committed by Dirk Hohndel
parent 4da7ab2431
commit da42b0b79d

View file

@ -2653,6 +2653,9 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
cur_dive->cylinder[cur_cylinder_index].gasmix.o2.permille = ptr[6] * 10;
cur_dive->cylinder[cur_cylinder_index].gasmix.he.permille = ptr[7] * 10;
cylinder_end();
cur_event.gas.index = cur_cylinder_index;
} else {
cur_event.gas.index = i;
}
break;
case 6: