comparison 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
comparison
equal deleted inserted replaced
527:015b7fdd90a7 528:4921aa796691
332 MENU_CALL tDivemenu_UseSensor, do_switch_to_sensor 332 MENU_CALL tDivemenu_UseSensor, do_switch_to_sensor
333 MENU_CALL tExit, do_continue_main_divemenu 333 MENU_CALL tExit, do_continue_main_divemenu
334 MENU_END 334 MENU_END
335 335
336 do_divemode_togglegf: 336 do_divemode_togglegf:
337 movff char_I_deco_model,WREG ; 0 = ZH-L16, 1 = ZH-L16-GF
338 decfsz WREG,W ; Was 1?
339 bra do_continue_main_divemenu ; No, do nothing and return
340
341 ; Toggle GF only in GF modes
337 ; Set customview to 5 (GF informations) 342 ; Set customview to 5 (GF informations)
338 movlw .4 343 movlw .4
339 movwf menupos3 ; Customview to come-1 344 movwf menupos3 ; Customview to come-1
340 bsf toggle_customview ; Set flag, the customview will be toggled very soon now... 345 bsf toggle_customview ; Set flag, the customview will be toggled very soon now...
341 movlw .1 346 movlw .1