Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
603:c56ed16dbd39 | 604:fb5bb04ad914 |
---|---|
111 if((line == 0) || (line == 5)) | 111 if((line == 0) || (line == 5)) |
112 { | 112 { |
113 /* MotionCtrl */ | 113 /* MotionCtrl */ |
114 text[textPointer++] = TXT_2BYTE; | 114 text[textPointer++] = TXT_2BYTE; |
115 text[textPointer++] = TXT2BYTE_MotionCtrl; | 115 text[textPointer++] = TXT2BYTE_MotionCtrl; |
116 text[textPointer++] = ' '; | |
117 text[textPointer++] = ' '; | |
118 text[textPointer++] = TXT_2BYTE; | |
119 switch(settingsGetPointer()->MotionDetection) | |
120 { | |
121 case MOTION_DETECT_OFF: | |
122 text[textPointer++] = TXT2BYTE_MoCtrlNone; | |
123 break; | |
124 case MOTION_DETECT_MOVE: | |
125 text[textPointer++] = TXT2BYTE_MoCtrlPitch; | |
126 break; | |
127 case MOTION_DETECT_SECTOR: | |
128 text[textPointer++] = TXT2BYTE_MoCtrlSector; | |
129 break; | |
130 case MOTION_DETECT_SCROLL: | |
131 text[textPointer++] = TXT2BYTE_MoCtrlScroll; | |
132 break; | |
133 default: | |
134 snprintf(&text[4],2,"%u",settingsGetPointer()->MotionDetection); | |
135 textPointer++; | |
136 break; | |
137 } | |
138 } | 116 } |
139 | 117 |
140 strcpy(&text[textPointer],"\n\r"); | 118 strcpy(&text[textPointer],"\n\r"); |
141 textPointer += 2; | 119 textPointer += 2; |
142 | |
143 if((line == 0) || (line == 6)) | |
144 { | |
145 text[textPointer++] = TXT_2BYTE; | |
146 text[textPointer++] = TXT2BYTE_CalibView; | |
147 strcpy(&text[textPointer],"\n\r"); | |
148 textPointer += 2; | |
149 } | |
150 #endif | 120 #endif |
151 | |
152 return StMCustom; | 121 return StMCustom; |
153 } | 122 } |
154 | 123 |