diff Discovery/Src/t3.c @ 633:68d95049f11a

Added menu structure to allow ppo2 modification in simulator mode: For development purpose (to be enabled by compile switch) the posibillity to modify ppo2 values using the T3_Sensor view quick menu access has been added.
author Ideenmodellierer
date Tue, 23 Feb 2021 21:58:18 +0100
parents 930f1bbe0ac2
children ed5422ac4ffb
line wrap: on
line diff
--- a/Discovery/Src/t3.c	Tue Feb 23 21:55:52 2021 +0100
+++ b/Discovery/Src/t3.c	Tue Feb 23 21:58:18 2021 +0100
@@ -689,6 +689,26 @@
 							GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow);
     			break;
 
+#ifdef ENABLE_T3_PPO_SIM
+    		case StDSIM1:	snprintf(text,TEXTSIZE,"\a\003\001PPO S0 +");
+							GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow);
+    			break;
+    		case StDSIM2:	snprintf(text,TEXTSIZE,"\a\003\001PPO S0 -");
+							GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow);
+    			break;
+    		case StDSIM3:	snprintf(text,TEXTSIZE,"\a\003\001PPO S1 +");
+							GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow);
+    			break;
+    		case StDSIM4:	snprintf(text,TEXTSIZE,"\a\003\001PPO S1 -");
+							GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow);
+    			break;
+    		case StDSIM5:	snprintf(text,TEXTSIZE,"\a\003\001PPO S2 +");
+							GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow);
+    			break;
+    		case StDSIM6:	snprintf(text,TEXTSIZE,"\a\003\001PPO S2 -");
+							GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow);
+    			break;
+#endif
     		default:		/* show divetime */
 
 							Divetime.Total = stateUsed->lifeData.dive_time_seconds_without_surface_time;
@@ -1241,6 +1261,7 @@
                 text[textpointer++] = ' ';
                 text[textpointer++] = '-';
                 text[textpointer++] = ' ';
+                text[textpointer++] = 0;
             }
             else
             {