# HG changeset patch
# User ideenmodellierer
# Date 1583011624 -3600
# Node ID a5101c688b494bc593e9b2dc775a3e5bb66717d2
# Parent  adb18fe9273754f1854be94a23919427495c1a89
Introduced enum for lower left corner view selection:
Enums allow changes in view configuration without danger of index inconsistencies

diff -r adb18fe92737 -r a5101c688b49 Discovery/Src/settings.c
--- a/Discovery/Src/settings.c	Sat Feb 29 22:25:20 2020 +0100
+++ b/Discovery/Src/settings.c	Sat Feb 29 22:27:04 2020 +0100
@@ -33,6 +33,7 @@
 #include "text_multilanguage.h" // for LANGUAGE_END
 #include "tHome.h" // for CVIEW_END
 #include "motion.h"
+#include "t7.h"
 
 SSettings Settings;
 
@@ -275,7 +276,7 @@
     .scooterSPARE2[0] = 0,
     .ppo2sensors_deactivated = 0,
     .tX_colorscheme  = 0,
-    .tX_userselectedLeftLowerCornerPrimary = 1,
+    .tX_userselectedLeftLowerCornerPrimary = LLC_Temperature,
     .tX_userselectedLeftLowerCornerTimeout = 0,
     .tX_customViewPrimary = 1,
     .tX_customViewTimeout = 0,
@@ -1161,9 +1162,9 @@
 
 /*	uint8_t tX_userselectedLeftLowerCornerPrimary;
  */
-    if(Settings.tX_userselectedLeftLowerCornerPrimary > 8)
+    if(Settings.tX_userselectedLeftLowerCornerPrimary >= LLC_END)
     {
-        Settings.tX_userselectedLeftLowerCornerPrimary = 1;
+        Settings.tX_userselectedLeftLowerCornerPrimary = LLC_Temperature;
         corrections++;
     }