Mercurial > public > hwos_code
diff src/menu_tree.asm @ 523:8e75aecb3290
BUGFIX: Menu tree cleaned up (Exited to CCR menu from simulator settings)
author | heinrichsweikamp |
---|---|
date | Fri, 04 Aug 2017 19:20:58 +0200 |
parents | 4e6f5c36f4cc |
children | d2e52e6e1604 |
line wrap: on
line diff
--- a/src/menu_tree.asm Fri Aug 04 16:19:50 2017 +0200 +++ b/src/menu_tree.asm Fri Aug 04 19:20:58 2017 +0200 @@ -111,7 +111,7 @@ MENU_BEGIN tPSCRMenu, .3 ; PSCR Menu MENU_OPTION tPSCR_O2_drop, oPSCR_drop, 0 MENU_OPTION tPSCR_lungratio,oPSCR_lungratio, 0 - MENU_CALL tExit, do_ccr_menu + MENU_CALL tExit, return_ccr_menu MENU_END do_calibrate_menu: @@ -131,7 +131,7 @@ extern calibrate_mix call calibrate_mix ; Calibrate with opt_calibration_O2_ratio, also calibrate S8 HUD if connected WAITMS d'250' ; Wait for HUD v3 - goto restart ; Restart into surface mode + goto restart ; Restart into surface mode do_ccr_sensor: call enable_ir_s8 ; Enable IR/S8-Port @@ -243,7 +243,7 @@ btfsc ccr_diluent_setup ; =1: Setting up Diluents ("Gas6-10") movlw .2 ; 2=Normal cpfseq lo - bra return_gas_depth ; Non-Deco gas or "Normal" Diluent, Return! + bra do_edit_gas_menu_1 ; Non-Deco gas or "Normal" Diluent, Return! MENU_BEGIN tGasEdit, .7 MENU_DYNAMIC gaslist_gastitle, 0 @@ -272,6 +272,8 @@ lfsr FSR0,obottomDepth call option_reset +do_planner_menu_1: + rcall menu_tree_double_pop ; R.L. do_planner_menu: extern do_demo_planner MENU_BEGIN tPlan, .7 @@ -288,9 +290,9 @@ MENU_BEGIN tPlan, .3 MENU_OPTION tSetBotUse, obottom_usage, 0 MENU_OPTION tSetDecoUse, odeco_usage, 0 - MENU_CALL tExit, do_planner_menu + MENU_CALL tExit, do_planner_menu_1 MENU_END - + ;============================================================================= ; Divemode menu @@ -391,7 +393,7 @@ call TFT_ClearScreen extern piezo_config call piezo_config ; Configure buttons - +; bra do_settings_menu_more_piezo do_settings_menu_more_piezo: MENU_BEGIN tSystSets, .7 MENU_CALL tCompassMenu, do_compass_menu @@ -483,7 +485,7 @@ write_int_eeprom .5 write_int_eeprom .6 ; Reset logbook pointers call ext_flash_erase_logbook ; And complete logbook (!) - goto do_continue_main_menu ; back to menu + goto do_continue_menu_4stack ; back to menu do_reset_deco: @@ -505,18 +507,20 @@ clrf nofly_time+1 clrf desaturation_time+0 ; Reset Desat clrf desaturation_time+1 - goto do_return_settings ; back to menu + goto do_continue_menu_4stack ; back to menu do_reset_settings: call TFT_ClearScreen ; Clear screen banksel common extern option_reset_all call option_reset_all ; Reset all options to factory default. - goto restart ; Restart into surfacemode + goto restart ; Restart into surfacemode, to show reset values like gases and deco model to the user +do_continue_menu_4stack: ; Return four levels deep + call menu_processor_pop do_continue_menu_3stack: ; Return three levels deep call menu_processor_pop - goto do_return_settings + goto do_return_settings do_reboot: call ext_flash_enable_protection ; Enables write protection