diff Discovery/Src/tMenuCustom.c @ 604:fb5bb04ad914

Merged menu items of viewport and motion control: viewport and motion control are depending on each other and were listed at the to level of custom view tab. Because motion control is just a one line item it has been moved into the viewport page. As result there is one free line for future custom view options available again.
author Ideenmodellierer
date Wed, 06 Jan 2021 21:01:00 +0100
parents 531e7818b737
children b9d4baa4f6fa
line wrap: on
line diff
--- a/Discovery/Src/tMenuCustom.c	Wed Jan 06 19:41:43 2021 +0100
+++ b/Discovery/Src/tMenuCustom.c	Wed Jan 06 21:01:00 2021 +0100
@@ -113,42 +113,11 @@
     /* MotionCtrl */
 		text[textPointer++] = TXT_2BYTE;
 		text[textPointer++] = TXT2BYTE_MotionCtrl;
-		text[textPointer++] = ' ';
-		text[textPointer++] = ' ';
-		text[textPointer++] = TXT_2BYTE;
-		switch(settingsGetPointer()->MotionDetection)
-		{
-			case MOTION_DETECT_OFF:
-				text[textPointer++] = TXT2BYTE_MoCtrlNone;
-				break;
-			case MOTION_DETECT_MOVE:
-				text[textPointer++] = TXT2BYTE_MoCtrlPitch;
-				break;
-			case MOTION_DETECT_SECTOR:
-				text[textPointer++] = TXT2BYTE_MoCtrlSector;
-				break;
-			case MOTION_DETECT_SCROLL:
-				text[textPointer++] = TXT2BYTE_MoCtrlScroll;
-						break;
-			default:
-				snprintf(&text[4],2,"%u",settingsGetPointer()->MotionDetection);
-				textPointer++;
-			break;
-		}
     }
 
 	strcpy(&text[textPointer],"\n\r");
 	textPointer += 2;
-
-    if((line == 0) || (line == 6))
-    {
-		text[textPointer++] = TXT_2BYTE;
-		text[textPointer++] = TXT2BYTE_CalibView;
-		strcpy(&text[textPointer],"\n\r");
-		textPointer += 2;
-    }
 #endif
-
     return StMCustom;
 }