From 31e26fd14451c84ef4531aaa3b643b10b529a637 Mon Sep 17 00:00:00 2001 From: Doug Junkins Date: Tue, 19 Jan 2021 07:50:08 -0800 Subject: mobile: add GF fields for ceiling calculation Adds fields to the advanced preferences page to modify GFLow and GFHigh for the Buhlmann decompression model for calculating ceilings. Updated preferences code to set the Buhlmann parameters in core/deco.c when the GF prefs are updated. Signed-off-by: Doug Junkins --- core/settings/qPrefTechnicalDetails.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/settings') diff --git a/core/settings/qPrefTechnicalDetails.cpp b/core/settings/qPrefTechnicalDetails.cpp index 2db4898ae..3c616170d 100644 --- a/core/settings/qPrefTechnicalDetails.cpp +++ b/core/settings/qPrefTechnicalDetails.cpp @@ -62,6 +62,7 @@ void qPrefTechnicalDetails::set_gfhigh(int value) if (value != prefs.gfhigh) { prefs.gfhigh = value; disk_gfhigh(true); + set_gf(-1, prefs.gfhigh); emit instance()->gfhighChanged(value); } } @@ -82,6 +83,7 @@ void qPrefTechnicalDetails::set_gflow(int value) if (value != prefs.gflow) { prefs.gflow = value; disk_gflow(true); + set_gf(prefs.gflow, -1); emit instance()->gflowChanged(value); } } -- cgit v1.2.3-70-g09d2