From a592b4e143e81cfc4154a8c5eeef81155c486937 Mon Sep 17 00:00:00 2001 From: willemferguson Date: Mon, 3 Jun 2019 16:38:20 +0200 Subject: [PATCH] Add delta-pO2 disply in Information Box Add display of the difference between pO2 in rebreather loop and the equivalent OC pO2: this is the oxygen drop over the mouthpiece for SCR dives. Obviously this is only displayed for SCR dives. Signed-off-by: willemferguson --- core/profile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/profile.c b/core/profile.c index 1d1a246cc..61277b6be 100644 --- a/core/profile.c +++ b/core/profile.c @@ -1417,8 +1417,11 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me put_format_loc(b, translate("gettextFromC", "SAC: %.*f%s/min\n"), decimals, sacvalue, unit); if (entry->cns) put_format_loc(b, translate("gettextFromC", "CNS: %u%%\n"), entry->cns); - if (prefs.pp_graphs.po2 && entry->pressures.o2 > 0) + if (prefs.pp_graphs.po2 && entry->pressures.o2 > 0) { put_format_loc(b, translate("gettextFromC", "pO₂: %.2fbar\n"), entry->pressures.o2); + if (entry->scr_OC_pO2.mbar) + put_format_loc(b, translate("gettextFromC", "SCR ΔpO2: %.2fbar\n"), entry->scr_OC_pO2.mbar/1000.0 - entry->pressures.o2); + } if (prefs.pp_graphs.pn2 && entry->pressures.n2 > 0) put_format_loc(b, translate("gettextFromC", "pN₂: %.2fbar\n"), entry->pressures.n2); if (prefs.pp_graphs.phe && entry->pressures.he > 0)