Mercurial > public > hwos_code
comparison src/customview.asm @ 337:508d7fb98b34
cleanup menu, add "Auto SP" option (Not working yet), minor layout change in compass menu
author | heinrichsweikamp |
---|---|
date | Sun, 28 Jun 2015 13:58:00 +0200 |
parents | 14b466f66a7f |
children | 573f2251cf49 |
comparison
equal
deleted
inserted
replaced
336:1318c6cad41b | 337:508d7fb98b34 |
---|---|
76 call TFT_hud_voltages ; Show HUD details | 76 call TFT_hud_voltages ; Show HUD details |
77 return | 77 return |
78 customview_1sec_view9: ; Ceiling | 78 customview_1sec_view9: ; Ceiling |
79 call TFT_ceiling ; Show Ceiling | 79 call TFT_ceiling ; Show Ceiling |
80 | 80 |
81 TSTOSS opt_extceiling ; 0=skip, 1=draw | |
82 return | |
83 | |
84 ; ppO2 value | 81 ; ppO2 value |
85 call TFT_display_ppo2_val | 82 call TFT_display_ppo2_val |
86 | 83 |
87 ; current GF value | 84 ; current GF value |
88 extern char_I_deco_model | 85 extern char_I_deco_model |
476 bra customview_toggle ; Yes, Call next view... | 473 bra customview_toggle ; Yes, Call next view... |
477 btfsc FLAG_apnoe_mode ; In Apnoe mode? | 474 btfsc FLAG_apnoe_mode ; In Apnoe mode? |
478 bra customview_toggle ; yes, Call next view... | 475 bra customview_toggle ; yes, Call next view... |
479 btfss FLAG_ccr_mode ; In CC mode? | 476 btfss FLAG_ccr_mode ; In CC mode? |
480 bra customview_toggle ; no, Call next view... | 477 bra customview_toggle ; no, Call next view... |
481 TSTOSS opt_ccr_mode ; =0: Fixed SP, =1: Sensor | 478 movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP |
482 bra customview_toggle ; no, Call next view... | 479 sublw .1 ; opt_ccr_mode = 1 (Sensor)? |
480 bnz customview_toggle ; no, Call next view... | |
483 call TFT_hud_mask ; Setup HUD mask | 481 call TFT_hud_mask ; Setup HUD mask |
484 call TFT_hud_voltages ; Show HUD details | 482 call TFT_hud_voltages ; Show HUD details |
485 bra customview_toggle_exit | 483 bra customview_toggle_exit |
486 | 484 |
487 customview_init_view9: ; Ceiling | 485 customview_init_view9: ; Ceiling |
489 bra customview_toggle ; yes, Call next view... | 487 bra customview_toggle ; yes, Call next view... |
490 btfsc FLAG_gauge_mode ; In Gauge mode? | 488 btfsc FLAG_gauge_mode ; In Gauge mode? |
491 bra customview_toggle ; Yes, Call next view... | 489 bra customview_toggle ; Yes, Call next view... |
492 call TFT_ceiling_mask ; Setup mask | 490 call TFT_ceiling_mask ; Setup mask |
493 call TFT_ceiling ; Show Ceiling | 491 call TFT_ceiling ; Show Ceiling |
494 | |
495 TSTOSS opt_extceiling ; 0=skip, 1=draw | |
496 bra customview_toggle_exit | |
497 | 492 |
498 ; ppO2 value | 493 ; ppO2 value |
499 call TFT_mask_ppo2 | 494 call TFT_mask_ppo2 |
500 call TFT_display_ppo2_val | 495 call TFT_display_ppo2_val |
501 | 496 |