diff Discovery/Src/t3.c @ 237:ec16fd26e280 div-fixes-5

Bugfix: do not show NDL in bigscreen mode when zero The first minute of the dive, no deco or NDL data is shown in normal mode, but when starting in bigscreen mode, the first minute, the screen shows NDL 0', which is obviously wrong. Fix this, and simply show nothing like in normal mode. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Sat, 06 Apr 2019 20:35:21 +0200
parents 51a3aeffc6b3
children 74a8296a2318
line wrap: on
line diff
--- a/Discovery/Src/t3.c	Sat Apr 06 09:41:14 2019 +0200
+++ b/Discovery/Src/t3.c	Sat Apr 06 20:35:21 2019 +0200
@@ -37,7 +37,7 @@
 #include "timer.h"
 #include "unit.h"
 
-//* Importend function prototypes ---------------------------------------------*/
+//* Imported function prototypes ---------------------------------------------*/
 extern uint8_t write_gas(char *text, uint8_t oxygen, uint8_t helium);
 
 /* Exported variables --------------------------------------------------------*/
@@ -799,7 +799,7 @@
             t3_basics_colorscheme_mod(text);
             GFX_write_string(&FontT105,tXc1,text,1);
         }
-        else // NDL
+        else if(pDecoinfo->output_ndl_seconds) // NDL
         {
             snprintf(text,TEXTSIZE,"\032\f%c",TXT_Nullzeit);
             GFX_write_string(&FontT42,tXc1,text,0);