aboutsummaryrefslogtreecommitdiffstats
path: root/core/load-git.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/load-git.c')
-rw-r--r--core/load-git.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/load-git.c b/core/load-git.c
index 4357e8f31..87f6ecb25 100644
--- a/core/load-git.c
+++ b/core/load-git.c
@@ -485,7 +485,7 @@ static void parse_sample_keyvalue(void *_sample, const char *key, const char *va
struct sample *sample = _sample;
if (!strcmp(key, "sensor")) {
- sample->sensor = atoi(value);
+ sample->sensor[0] = atoi(value);
return;
}
if (!strcmp(key, "ndl")) {
@@ -540,6 +540,11 @@ static void parse_sample_keyvalue(void *_sample, const char *key, const char *va
}
if (!strcmp(key, "o2pressure")) {
pressure_t p = get_pressure(value);
+ //
+ // FIXME!!! What's the O2 cylinder index?
+ // get_cylinder_idx_by_use(dive, OXYGEN)
+ //
+ sample->sensor[1] = 1;
sample->pressure[1].mbar = p.mbar;
return;
}