mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Reset counters when importing new MK6 log
Naturally the pressure counters and cylinder index must be reset to zero when reading in a new Poseidon dive log. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
676713335b
commit
56bfa1b1be
1 changed files with 1 additions and 2 deletions
3
file.c
3
file.c
|
@ -430,7 +430,6 @@ char *parse_mkvi_value(const char *haystack, const char *needle)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int cur_cylinder_index;
|
||||
int parse_txt_file(const char *filename, const char *csv)
|
||||
{
|
||||
struct memblock memtxt, memcsv;
|
||||
|
@ -449,7 +448,7 @@ int parse_txt_file(const char *filename, const char *csv)
|
|||
int prev_depth = 0, cur_sampletime = 0, prev_setpoint = -1;
|
||||
bool has_depth = false, has_setpoint = false;
|
||||
char *lineptr;
|
||||
static int diluent_pressure = 0, cylinder_pressure = 0;
|
||||
int diluent_pressure = 0, cylinder_pressure = 0, cur_cylinder_index = 0;
|
||||
|
||||
struct dive *dive;
|
||||
struct divecomputer *dc;
|
||||
|
|
Loading…
Add table
Reference in a new issue