diff Discovery/Src/tMenuXtra.c @ 347:77de014928d6 FlightMode_Improvment

Added option to manually leave dive mode to system menu Added multilanguage strings and removed some outdated ones
author ideenmodellierer
date Thu, 03 Oct 2019 21:33:47 +0200
parents 5f11787b4f42
children 12f8745c8a94
line wrap: on
line diff
--- a/Discovery/Src/tMenuXtra.c	Thu Oct 03 21:30:16 2019 +0200
+++ b/Discovery/Src/tMenuXtra.c	Thu Oct 03 21:33:47 2019 +0200
@@ -94,6 +94,16 @@
         strcpy(&text[textPointer],"\n\r");
         textPointer += 2;
     }
+    else
+    {
+    	if((line == 0) || (line == 4))		/* end dive mode only used during real dives */
+    	    {
+    	        text[textPointer++] = TXT_2BYTE;
+    	        text[textPointer++] = TXT2BYTE_EndDiveMode;
+    	    }
+    	strcpy(&text[textPointer],"\n\r");
+    	textPointer += 2;
+    }
 
     return StMXTRA;
 }