Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/sleepmode.asm @ 626:bab5a9fc1b10
restore last used customview in dive- and surface-mode
author | heinrichsweikamp |
---|---|
date | Sat, 11 Aug 2012 15:30:30 +0200 |
parents | 06db5dd9149f |
children | e6ac142e82b0 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/sleepmode.asm Thu Aug 09 09:15:26 2012 +0200 +++ b/code_part1/OSTC_code_asm_part1/sleepmode.asm Sat Aug 11 15:30:30 2012 +0200 @@ -35,6 +35,11 @@ sleeploop2: call PLED_DisplayOff ; display off call disable_rs232 ; disable UART module + +; Save surface mode custom view + movff menupos3,EEDATA ; Copy to EEDATA + write_int_eeprom d'93' ; Write last selected customview surface mode into EEPROM + clrf divemins+0 clrf divemins+1 bcf TRISB,6