changeset 561:e581425c7e3e

Solved minor warnings
author Ideenmodellierer
date Sun, 15 Nov 2020 19:54:36 +0100
parents 5d80bb8d22cb
children ec76fa85009e
files Discovery/Inc/tMenuEditCustom.h Discovery/Src/base.c Discovery/Src/tMenuEditCustom.c
diffstat 3 files changed, 2 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Inc/tMenuEditCustom.h	Sun Nov 15 19:53:09 2020 +0100
+++ b/Discovery/Inc/tMenuEditCustom.h	Sun Nov 15 19:54:36 2020 +0100
@@ -39,6 +39,5 @@
 void openEdit_CustomviewDivemodeMenu(uint8_t line);
 void CustomviewDivemode_refresh();
 void refresh_ViewPort(void);
-void tViewControl(uint8_t sendAction);
 
 #endif /* TMENU_EDIT_CUSTOM_H */
--- a/Discovery/Src/base.c	Sun Nov 15 19:53:09 2020 +0100
+++ b/Discovery/Src/base.c	Sun Nov 15 19:54:36 2020 +0100
@@ -232,7 +232,6 @@
 #include "test_vpm.h"
 #include "tDebug.h"
 #include "motion.h"
-#include "data_exchange_main.h"
 
 #ifdef DEMOMODE
 #include "demo.h"
@@ -350,7 +349,9 @@
     uint16_t totalDiveCounterFound;
 
 	SStateList status;
+#ifdef ENABLE_MOTION_CONTROL
     detectionState_t pitchstate;
+#endif
     set_globalState( StBoot0 );
     LastButtonPressed = 0;
 
--- a/Discovery/Src/tMenuEditCustom.c	Sun Nov 15 19:53:09 2020 +0100
+++ b/Discovery/Src/tMenuEditCustom.c	Sun Nov 15 19:54:36 2020 +0100
@@ -892,24 +892,3 @@
      }
      write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext);
 }
-
-void tViewControl(uint8_t sendAction)
-{
-    switch(sendAction)
-    {
-    case ACTION_BUTTON_ENTER:
-        break;
-    case ACTION_BUTTON_NEXT:
-        break;
-    case ACTION_TIMEOUT:
-    case ACTION_MODE_CHANGE:
-    case ACTION_BUTTON_BACK:
-    exitInfo();
-    	break;
-    default:
-        break;
-    case ACTION_IDLE_TICK:
-    case ACTION_IDLE_SECOND:
-        break;
-    }
-}