Mercurial > public > hwos_code
diff src/divemenu_tree.asm @ 528:4921aa796691
BUGFIX: Ignore "Toggle GF" Menu entry (in divemode) when using the non-GF deco mode
author | heinrichsweikamp |
---|---|
date | Sun, 06 Aug 2017 20:12:49 +0200 |
parents | 7db10ebae205 |
children | f6a3e820a798 |
line wrap: on
line diff
--- a/src/divemenu_tree.asm Sat Aug 05 17:36:58 2017 +0200 +++ b/src/divemenu_tree.asm Sun Aug 06 20:12:49 2017 +0200 @@ -334,6 +334,11 @@ MENU_END do_divemode_togglegf: + movff char_I_deco_model,WREG ; 0 = ZH-L16, 1 = ZH-L16-GF + decfsz WREG,W ; Was 1? + bra do_continue_main_divemenu ; No, do nothing and return + + ; Toggle GF only in GF modes ; Set customview to 5 (GF informations) movlw .4 movwf menupos3 ; Customview to come-1