diff --git a/core/load-git.cpp b/core/load-git.cpp index f1ec41528..3d406b7c0 100644 --- a/core/load-git.cpp +++ b/core/load-git.cpp @@ -585,7 +585,7 @@ static void parse_sample_keyvalue(void *_sample, const char *key, const std::str sample->o2sensor[5] = get_o2pressure(value.c_str()); return; } - if (!strcmp(key, "sensor7")) { + if (!strcmp(key, "dc_supplied_ppo2")) { sample->o2sensor[6] = get_o2pressure(value.c_str()); return; } diff --git a/core/parse-xml.cpp b/core/parse-xml.cpp index 933247cfb..acbf630c2 100644 --- a/core/parse-xml.cpp +++ b/core/parse-xml.cpp @@ -931,7 +931,7 @@ static void try_to_fill_sample(struct sample *sample, const char *name, char *bu return; if (MATCH("sensor6.sample", double_to_o2pressure, &sample->o2sensor[5])) // up to 6 CCR sensors return; - if (MATCH("sensor7.sample", double_to_o2pressure, &sample->o2sensor[6])) // the dive computer calculated ppO2 + if (MATCH("dc_supplied_ppo2.sample", double_to_o2pressure, &sample->o2sensor[6])) // the dive computer calculated ppO2 return; if (MATCH("po2.sample", double_to_o2pressure, &sample->setpoint)) return; diff --git a/core/save-git.cpp b/core/save-git.cpp index bc78445d5..7fa9c4125 100644 --- a/core/save-git.cpp +++ b/core/save-git.cpp @@ -343,7 +343,7 @@ static void save_sample(struct membuffer *b, const struct sample &sample, struct } if ((sample.o2sensor[6].mbar) && (sample.o2sensor[6].mbar != old.o2sensor[6].mbar)) { - put_milli(b, " sensor7=", sample.o2sensor[6].mbar, "bar"); + put_milli(b, " dc_supplied_ppo2=", sample.o2sensor[6].mbar, "bar"); old.o2sensor[6] = sample.o2sensor[6]; } diff --git a/core/save-xml.cpp b/core/save-xml.cpp index 1a3c76545..e6df88197 100644 --- a/core/save-xml.cpp +++ b/core/save-xml.cpp @@ -328,7 +328,7 @@ static void save_sample(struct membuffer *b, const struct sample &sample, struct } if ((sample.o2sensor[6].mbar) && (sample.o2sensor[6].mbar != old.o2sensor[6].mbar)) { - put_milli(b, " sensor7='", sample.o2sensor[6].mbar, " bar'"); + put_milli(b, " dc_supplied_ppo2='", sample.o2sensor[6].mbar, " bar'"); old.o2sensor[6] = sample.o2sensor[6]; }