summaryrefslogtreecommitdiffstats
path: root/load-git.c
diff options
context:
space:
mode:
Diffstat (limited to 'load-git.c')
-rw-r--r--load-git.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/load-git.c b/load-git.c
index acfdd2527..f50b067cf 100644
--- a/load-git.c
+++ b/load-git.c
@@ -375,8 +375,7 @@ static void parse_sample_keyvalue(void *_sample, const char *key, const char *va
}
if (!strcmp(key, "po2")) {
pressure_t p = get_pressure(value);
- // Ugh, typeless.
- sample->po2 = p.mbar;
+ sample->po2.mbar = p.mbar;
return;
}
if (!strcmp(key, "heartbeat")) {
@@ -384,7 +383,7 @@ static void parse_sample_keyvalue(void *_sample, const char *key, const char *va
return;
}
if (!strcmp(key, "bearing")) {
- sample->bearing = atoi(value);
+ sample->bearing.degrees = atoi(value);
return;
}
report_error("Unexpected sample key/value pair (%s/%s)", key, value);