summaryrefslogtreecommitdiffstats
path: root/backend-shared/plannershared.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend-shared/plannershared.cpp')
-rw-r--r--backend-shared/plannershared.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/backend-shared/plannershared.cpp b/backend-shared/plannershared.cpp
index 542f1aae1..b39aa556c 100644
--- a/backend-shared/plannershared.cpp
+++ b/backend-shared/plannershared.cpp
@@ -105,10 +105,18 @@ void plannerShared::set_decosac(double value)
double plannerShared::sacfactor()
{
- return qPrefDivePlanner::sacfactor() / 100.0;
+ return qPrefDivePlanner::sacfactor() /
+#ifdef SUBSURFACE_MOBILE
+ 10.0;
+#else
+ 100.0;
+#endif
}
void plannerShared::set_sacfactor(double value)
{
+#ifdef SUBSURFACE_MOBILE
+ value /= 10.0;
+#endif
// NO conversion, this is done in the planner model.
DivePlannerPointsModel::instance()->setSacFactor(value);
}