Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/surfmode.asm @ 626:bab5a9fc1b10
restore last used customview in dive- and surface-mode
author | heinrichsweikamp |
---|---|
date | Sat, 11 Aug 2012 15:30:30 +0200 |
parents | 227eaded4e1b |
children | 420e62cd88ad |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/surfmode.asm Thu Aug 09 09:15:26 2012 +0200 +++ b/code_part1/OSTC_code_asm_part1/surfmode.asm Sat Aug 11 15:30:30 2012 +0200 @@ -42,7 +42,10 @@ movff last_surfpressure_30min+0,int_I_pres_surface+0 ; copy surface air pressure to deco routine movff last_surfpressure_30min+1,int_I_pres_surface+1 ; 30min old values - clrf menupos3 ; Reset Custom views (Default: No custom view) +; Reload last customview + read_int_eeprom d'93' ; Read last selected customview surface mode into EEDATA + movff EEDATA,menupos3 ; Copy to menupos3 + call surfcustomview_toggle2 ; Show customview btfsc gauge_mode ; Ignore in gauge mode bra surfloop1