diff Discovery/Src/tHome.c @ 685:980d7f8d5530 Betatest

Bugfix automatic switch to o2 sensor custom view: In surface mode the custom view will automatically switch to the o2 sensor view in case the OSTC4 is set to sensor mode. This was also done in case the o2 sensor view was deactivated. This lead to a automatic switch to e.g. compass what was not intended. In the new version the automatic switching is deactivated in case the custom view is deactivated
author Ideenmodellierer
date Wed, 03 Aug 2022 18:19:03 +0200
parents 68d95049f11a
children 4a6bffaa38b3
line wrap: on
line diff
--- a/Discovery/Src/tHome.c	Thu Jun 02 20:24:59 2022 +0200
+++ b/Discovery/Src/tHome.c	Wed Aug 03 18:19:03 2022 +0200
@@ -590,7 +590,7 @@
         }
     }
 
-    if((stateUsed->mode == MODE_SURFACE) && (stateUsed->diveSettings.ppo2sensors_deactivated != 0x07) && (stateUsed->diveSettings.ccrOption != 0))
+    if((stateUsed->mode == MODE_SURFACE) && (stateUsed->diveSettings.ppo2sensors_deactivated != 0x07) && (stateUsed->diveSettings.ccrOption != 0) && (!t7_customview_disabled(CVIEW_sensors)))
     {
     	tHome_tick_count_o2sens++;
     	if(tHome_tick_count_o2sens > AUTORETURN_O2SENS)