diff Discovery/Src/t6_apnea.c @ 386:39c147e47c1c MotionDetection

Added key direction awarness to t3, t5 and t6 views: In case of big font views the handling of motion events were not considered, As results all events caused a menu change in th same direction.
author ideenmodellierer
date Mon, 21 Oct 2019 21:16:53 +0200
parents 2bb1db22b5f5
children 65c7b009136f
line wrap: on
line diff
--- a/Discovery/Src/t6_apnea.c	Mon Oct 21 18:37:43 2019 +0200
+++ b/Discovery/Src/t6_apnea.c	Mon Oct 21 21:16:53 2019 +0200
@@ -301,9 +301,9 @@
 
 
 
-void t6_change_customview(void)
+void t6_change_customview(uint8_t action)
 {
-    t3_basics_change_customview(&t6_selection_customview, t6_customviews);
+    t3_basics_change_customview(&t6_selection_customview, t6_customviews, action);
 }
 
 
@@ -311,9 +311,6 @@
 {
     uint8_t customViewLeftSide = CVIEW_T3_MaxDepth;
 
-    if((t6_selection_customview == CVIEW_sensors) &&(stateUsed->diveSettings.ccrOption == 0))
-        t6_change_customview();
-
     if(t6_getCustomView() == CVIEW_T3_ApnoeSurfaceInfo)
         customViewLeftSide = CVIEW_T3_ApnoeSurfaceInfo;