comparison src/menu_tree.asm @ 650:bc214815deb2

3.19/10.75 release
author heinrichsweikamp
date Sun, 28 Aug 2022 13:13:38 +0200
parents ef2ed7e3a895
children 682c514c53c0
comparison
equal deleted inserted replaced
649:ef2ed7e3a895 650:bc214815deb2
93 movff active_customview,customview_surfmode ; save last custom view 93 movff active_customview,customview_surfmode ; save last custom view
94 clrf MS_flags_imprint ; clear all flags for data imprinting 94 clrf MS_flags_imprint ; clear all flags for data imprinting
95 call TFT_boot ; initialize display 95 call TFT_boot ; initialize display
96 call menu_processor_reset ; reset menu stack 96 call menu_processor_reset ; reset menu stack
97 97
98 ; reset planning parameters to default values - only when entering the menu, thus keeping the settings between multiple calculator runs
99 lfsr FSR0,odiveInterval ; surface interval
100 call option_reset ; reset to default
101 lfsr FSR0,obottomTime ; bottom time
102 call option_reset ; reset to default
103 lfsr FSR0,obottomDepth ; bottom depth
104 call option_reset ; reset to default
105 lfsr FSR0,oSimAGF ; GF/aGF
106 call option_reset ; reset to default
107
108 IFDEF _gas_contingency
109 lfsr FSR0,oGasContingencySim ; gas contingency
110 call option_reset ; reset to default (volatile option)
111 ENDIF ; _gas_contingency
112
98 main_menu_common: 113 main_menu_common:
99 IFDEF _ccr_pscr 114 IFDEF _ccr_pscr
100 MENU_BEGIN tMainMenu, .7 115 MENU_BEGIN tMainMenu, .7
101 MENU_CALL tLogbook, do_logbook 116 MENU_CALL tLogbook, do_logbook
102 MENU_CALL tGasSetup, do_menu_gas 117 MENU_CALL tGasSetup, do_menu_gas
515 ;----------------------------------------------------------------------------- 530 ;-----------------------------------------------------------------------------
516 ; OC Gas Setup - 3rd Level - Tank Setup 531 ; OC Gas Setup - 3rd Level - Tank Setup
517 ; 532 ;
518 do_menu_gas_tank: 533 do_menu_gas_tank:
519 IFDEF _rx_functions 534 IFDEF _rx_functions
535 btfss ostc_rx_present ; OSTC has RX module?
536 bra do_menu_gas_tank2 ; NO, skip tank menu with RX
520 TSTOSC opt_TR_mode ; TR functions switched on? 537 TSTOSC opt_TR_mode ; TR functions switched on?
521 bra do_menu_gas_tank_rx ; YES 538 bra do_menu_gas_tank_rx ; YES
539 do_menu_gas_tank2:
522 ENDIF 540 ENDIF
523 541
524 IFDEF _ccr_pscr 542 IFDEF _ccr_pscr
525 MENU_BEGIN tSetup_Tank, .5 543 MENU_BEGIN tSetup_Tank, .5
526 MENU_DYNAMIC dyn_gastitle, 0 544 MENU_DYNAMIC dyn_gastitle, 0
690 708
691 ;----------------------------------------------------------------------------- 709 ;-----------------------------------------------------------------------------
692 ; Simulator (Deco Calculator) Menu 710 ; Simulator (Deco Calculator) Menu
693 ; 711 ;
694 do_menu_simulator: 712 do_menu_simulator:
695 ; reset planning parameters to default values 713 ; ; reset planning parameters to default values
696 lfsr FSR0,odiveInterval ; surface interval 714 ; lfsr FSR0,odiveInterval ; surface interval
697 call option_reset ; reset to default 715 ; call option_reset ; reset to default
698 lfsr FSR0,obottomTime ; bottom time 716 ; lfsr FSR0,obottomTime ; bottom time
699 call option_reset ; reset to default 717 ; call option_reset ; reset to default
700 lfsr FSR0,obottomDepth ; bottom depth 718 ; lfsr FSR0,obottomDepth ; bottom depth
701 call option_reset ; reset to default 719 ; call option_reset ; reset to default
702 lfsr FSR0,oSimAGF ; GF/aGF 720 ; lfsr FSR0,oSimAGF ; GF/aGF
703 call option_reset ; reset to default 721 ; call option_reset ; reset to default
704 722 ;
705 IFDEF _gas_contingency 723 ; IFDEF _gas_contingency
706 lfsr FSR0,oGasContingencySim ; gas contingency 724 ; lfsr FSR0,oGasContingencySim ; gas contingency
707 call option_reset ; reset to default (volatile option) 725 ; call option_reset ; reset to default (volatile option)
708 ENDIF ; _gas_contingency 726 ; ENDIF ; _gas_contingency
709 727
710 do_menu_simulator_common_1: 728 do_menu_simulator_common_1:
711 call restart_set_modes_and_flags ; initialize dive mode settings 729 call restart_set_modes_and_flags ; initialize dive mode settings
712 730
713 do_menu_simulator_common_2: 731 do_menu_simulator_common_2:
801 ;----------------------------------------------------------------------------- 819 ;-----------------------------------------------------------------------------
802 ; Dive Settings Menu - 2nd Layer - Dive Mode 820 ; Dive Settings Menu - 2nd Layer - Dive Mode
803 ; 821 ;
804 do_menu_dive_dive: 822 do_menu_dive_dive:
805 IFDEF _cave_mode 823 IFDEF _cave_mode
824 MENU_BEGIN tDiveSetup, .7
825 MENU_OPT_INC tDvMode, oDiveMode ; dive mode
826 MENU_OPT_INC tCvMode, oCaveMode ; cave mode
827 MENU_OPT_INC tFTTSMenu, oExtraTime ; fTTS/delay
828 MENU_OPT_INC tTimeoutDive, oDiveTimeout ; dive timeout
829 MENU_OPT_INC tStoreApnoeDive, oStoreApnoe ; store apnoe
830 MENU_OPT_INC tWarningLevel, oWarningLevel ; Warning level
831 MENU_CALL tBack, do_return_menu_dive
832 MENU_END
833 ELSE
806 MENU_BEGIN tDiveSetup, .6 834 MENU_BEGIN tDiveSetup, .6
807 MENU_OPT_INC tDvMode, oDiveMode ; dive mode 835 MENU_OPT_INC tDvMode, oDiveMode ; dive mode
808 MENU_OPT_INC tCvMode, oCaveMode ; cave mode 836 MENU_OPT_INC tFTTSMenu, oExtraTime ; fTTS/delay
809 MENU_OPT_INC tFTTSMenu, oExtraTime ; fTTS/delay
810 MENU_OPT_INC tTimeoutDive, oDiveTimeout ; dive timeout 837 MENU_OPT_INC tTimeoutDive, oDiveTimeout ; dive timeout
811 MENU_OPT_INC tStoreApnoeDive, oStoreApnoe ; store apnoe 838 MENU_OPT_INC tStoreApnoeDive, oStoreApnoe ; store apnoe
812 MENU_CALL tBack, do_return_menu_dive 839 MENU_OPT_INC tWarningLevel, oWarningLevel ; Warning level
813 MENU_END 840 MENU_CALL tBack, do_return_menu_dive
814 ELSE
815 MENU_BEGIN tDiveSetup, .5
816 MENU_OPT_INC tDvMode, oDiveMode ; dive mode
817 MENU_OPT_INC tFTTSMenu, oExtraTime ; fTTS/delay
818 MENU_OPT_INC tTimeoutDive, oDiveTimeout ; dive timeout
819 MENU_OPT_INC tStoreApnoeDive, oStoreApnoe ; store apnoe
820 MENU_CALL tBack, do_return_menu_dive
821 MENU_END 841 MENU_END
822 ENDIF 842 ENDIF
823 843
824 844
825 ;----------------------------------------------------------------------------- 845 ;-----------------------------------------------------------------------------
1561 1581
1562 ;----------------------------------------------------------------------------- 1582 ;-----------------------------------------------------------------------------
1563 ; Settings Menu - 3rd Layer - Display Settings - Brightness 1583 ; Settings Menu - 3rd Layer - Display Settings - Brightness
1564 ; 1584 ;
1565 do_menu_Brightness: 1585 do_menu_Brightness:
1566 MENU_BEGIN tBright, .3 1586 MENU_BEGIN tBright, .4
1567 MENU_OPT_INC tDvMode, oBrightness_dive 1587 MENU_OPT_INC tBrightDive, oBrightness_dive
1568 MENU_OPT_INC tBrightsurface, oBrightness_surface 1588 MENU_OPT_INC tBrightSurface, oBrightness_surface
1589 MENU_OPT_INC tUseAmbientSensor, oUseAmbientSensor
1569 MENU_CALL tBack, do_return_dispsets_menu 1590 MENU_CALL tBack, do_return_dispsets_menu
1570 MENU_END 1591 MENU_END
1571 1592
1572 1593
1573 ;----------------------------------------------------------------------------- 1594 ;-----------------------------------------------------------------------------