Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
632:2586f7b734f4 | 633:68d95049f11a |
---|---|
687 | 687 |
688 case StDCHECK: snprintf(text,TEXTSIZE,"\a\003\001%c%c", TXT_2BYTE, TXT2BYTE_CheckMarker); | 688 case StDCHECK: snprintf(text,TEXTSIZE,"\a\003\001%c%c", TXT_2BYTE, TXT2BYTE_CheckMarker); |
689 GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow); | 689 GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow); |
690 break; | 690 break; |
691 | 691 |
692 #ifdef ENABLE_T3_PPO_SIM | |
693 case StDSIM1: snprintf(text,TEXTSIZE,"\a\003\001PPO S0 +"); | |
694 GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow); | |
695 break; | |
696 case StDSIM2: snprintf(text,TEXTSIZE,"\a\003\001PPO S0 -"); | |
697 GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow); | |
698 break; | |
699 case StDSIM3: snprintf(text,TEXTSIZE,"\a\003\001PPO S1 +"); | |
700 GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow); | |
701 break; | |
702 case StDSIM4: snprintf(text,TEXTSIZE,"\a\003\001PPO S1 -"); | |
703 GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow); | |
704 break; | |
705 case StDSIM5: snprintf(text,TEXTSIZE,"\a\003\001PPO S2 +"); | |
706 GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow); | |
707 break; | |
708 case StDSIM6: snprintf(text,TEXTSIZE,"\a\003\001PPO S2 -"); | |
709 GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow); | |
710 break; | |
711 #endif | |
692 default: /* show divetime */ | 712 default: /* show divetime */ |
693 | 713 |
694 Divetime.Total = stateUsed->lifeData.dive_time_seconds_without_surface_time; | 714 Divetime.Total = stateUsed->lifeData.dive_time_seconds_without_surface_time; |
695 Divetime.Minutes = Divetime.Total / 60; | 715 Divetime.Minutes = Divetime.Total / 60; |
696 Divetime.Seconds = Divetime.Total - ( Divetime.Minutes * 60 ); | 716 Divetime.Seconds = Divetime.Total - ( Divetime.Minutes * 60 ); |
1239 { | 1259 { |
1240 text[textpointer++] = '\031'; | 1260 text[textpointer++] = '\031'; |
1241 text[textpointer++] = ' '; | 1261 text[textpointer++] = ' '; |
1242 text[textpointer++] = '-'; | 1262 text[textpointer++] = '-'; |
1243 text[textpointer++] = ' '; | 1263 text[textpointer++] = ' '; |
1264 text[textpointer++] = 0; | |
1244 } | 1265 } |
1245 else | 1266 else |
1246 { | 1267 { |
1247 if(stateUsed->warnings.sensorOutOfBounds[i]) | 1268 if(stateUsed->warnings.sensorOutOfBounds[i]) |
1248 text[textpointer++] = '\025'; | 1269 text[textpointer++] = '\025'; |