diff Discovery/Src/tMenuXtra.c @ 351:ba53ab77f059

Merge
author heinrichsweikamp
date Sun, 06 Oct 2019 14:12:41 +0200
parents 77de014928d6
children 12f8745c8a94
line wrap: on
line diff
--- a/Discovery/Src/tMenuXtra.c	Sun Oct 06 14:07:51 2019 +0200
+++ b/Discovery/Src/tMenuXtra.c	Sun Oct 06 14:12:41 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;
 }