changeset 259:26c874cdde0d bm-3

feature: allow new saturation to be set in lower left corner While we already could select it during a dive, it was not possible to set the left lower corner field to the saturation field as a default setting. With this commit, we can. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Mon, 15 Apr 2019 17:35:47 +0200
parents 0087d6251f59
children ec33b9b17ffd
files Discovery/Src/settings.c Discovery/Src/tMenuEditSystem.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/settings.c	Fri Apr 12 22:00:07 2019 +0200
+++ b/Discovery/Src/settings.c	Mon Apr 15 17:35:47 2019 +0200
@@ -1155,7 +1155,7 @@
 
 /*	uint8_t tX_userselectedLeftLowerCornerPrimary;
  */
-    if(Settings.tX_userselectedLeftLowerCornerPrimary > 7)
+    if(Settings.tX_userselectedLeftLowerCornerPrimary > 8)
     {
         Settings.tX_userselectedLeftLowerCornerPrimary = 1;
         corrections++;
--- a/Discovery/Src/tMenuEditSystem.c	Fri Apr 12 22:00:07 2019 +0200
+++ b/Discovery/Src/tMenuEditSystem.c	Mon Apr 15 17:35:47 2019 +0200
@@ -862,6 +862,9 @@
     case 7:
         text[4] = TXT_CNS;
         break;
+    case 8:
+    	text[4] = TXT_ActualGradient;
+    	break;
     /* none */
     case 0:
         text[4] = '-';
@@ -1008,7 +1011,7 @@
 
     value += 1;
 
-    if(value > 7)
+    if(value > 8)
         value = 0;
 
     settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary = value;