comparison Discovery/Src/tMenuSystem.c @ 520:970d8040c0e3

Moved custom view menu to new tab: In previous version old location of custom views was kept for easier development. After establishing new tab the old implementation has been removed from MenuSystem unit.
author Ideenmodellierer
date Tue, 08 Sep 2020 21:24:14 +0200
parents 3485360c5db0
children 54c5ec8416c4
comparison
equal deleted inserted replaced
519:2c49561c8062 520:970d8040c0e3
250 textPointer += 2; 250 textPointer += 2;
251 } 251 }
252 252
253 if((line == 0) || (line == 4)) 253 if((line == 0) || (line == 4))
254 { 254 {
255 text[textPointer++] = TXT_2BYTE;
256 text[textPointer++] = TXT2BYTE_Customviews;//TXT2BYTE_ShowDebug;
257 }
258 text[textPointer++] = '\n';
259 text[textPointer++] = '\r';
260 text[textPointer] = 0;
261
262 if((line == 0) || (line == 5))
263 {
264 text[textPointer++] = TXT_Information; 255 text[textPointer++] = TXT_Information;
265 text[textPointer++] = '\t'; 256 text[textPointer++] = '\t';
266 textPointer += snprintf(&text[textPointer],29,"RTE %u.%u OS %i.%i.%i" 257 textPointer += snprintf(&text[textPointer],29,"RTE %u.%u OS %i.%i.%i"
267 ,RTEhigh 258 ,RTEhigh
268 ,RTElow 259 ,RTElow
272 ); 263 );
273 } 264 }
274 strcpy(&text[textPointer],"\n\r"); 265 strcpy(&text[textPointer],"\n\r");
275 textPointer += 2; 266 textPointer += 2;
276 267
277 if((line == 0) || (line == 6)) 268 if((line == 0) || (line == 5))
278 { 269 {
279 text[textPointer++] = TXT_2BYTE; 270 text[textPointer++] = TXT_2BYTE;
280 text[textPointer++] = TXT2BYTE_ResetMenu; 271 text[textPointer++] = TXT2BYTE_ResetMenu;
281 text[textPointer] = 0; 272 text[textPointer] = 0;
282 } 273 }
286 return StMSYS; 277 return StMSYS;
287 } 278 }
288 279
289 280
290 /* Private functions ---------------------------------------------------------*/ 281 /* Private functions ---------------------------------------------------------*/
291
292 char customview_TXT2BYTE_helper(uint8_t customViewId)
293 {
294 char text = 0;
295
296 switch(customViewId)
297 {
298 case CVIEW_sensors:
299 text = TXT2BYTE_O2monitor;
300 break;
301 case CVIEW_sensors_mV:
302 text = TXT2BYTE_O2voltage;
303 break;
304 case CVIEW_Compass:
305 text = TXT2BYTE_Compass;
306 break;
307 case CVIEW_Decolist:
308 case CVIEW_T3_Decostop:
309 text = TXT2BYTE_Decolist;
310 break;
311 case CVIEW_Tissues:
312 text = TXT2BYTE_Tissues;
313 break;
314 case CVIEW_Profile:
315 text = TXT2BYTE_Profile;
316 break;
317 case CVIEW_Gaslist:
318 text = TXT2BYTE_Gaslist;
319 break;
320 case CVIEW_EADTime:
321 text = TXT2BYTE_Info;
322 break;
323 case CVIEW_SummaryOfLeftCorner:
324 text = TXT2BYTE_Summary;
325 break;
326 case CVIEW_noneOrDebug:
327 text = TXT2BYTE_DispNoneDbg;
328 break;
329 case CVIEW_T3_MaxDepth:
330 text = TXT2BYTE_MaxDepth;
331 break;
332 case CVIEW_T3_StopWatch:
333 text = TXT2BYTE_Stopwatch;
334 break;
335 case CVIEW_T3_TTS:
336 text = TXT2BYTE_TTS;
337 break;
338 case CVIEW_T3_ppO2andGas:
339 text = TXT2BYTE_ppoNair;
340 break;
341 case CVIEW_T3_Navigation:
342 text = TXT2BYTE_Navigation;
343 break;
344 case CVIEW_T3_DepthData:
345 text = TXT2BYTE_DepthData;
346 break;
347 default:
348 break;
349 }
350 return text;
351 }