comparison 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
comparison
equal deleted inserted replaced
625:7743cf997648 626:bab5a9fc1b10
33 call deco_hash ; calculate MD2 hash 33 call deco_hash ; calculate MD2 hash
34 movlb b'00000001' ; Back to Bank1 34 movlb b'00000001' ; Back to Bank1
35 sleeploop2: 35 sleeploop2:
36 call PLED_DisplayOff ; display off 36 call PLED_DisplayOff ; display off
37 call disable_rs232 ; disable UART module 37 call disable_rs232 ; disable UART module
38
39 ; Save surface mode custom view
40 movff menupos3,EEDATA ; Copy to EEDATA
41 write_int_eeprom d'93' ; Write last selected customview surface mode into EEPROM
42
38 clrf divemins+0 43 clrf divemins+0
39 clrf divemins+1 44 clrf divemins+1
40 bcf TRISB,6 45 bcf TRISB,6
41 bcf TRISB,7 46 bcf TRISB,7
42 bcf PORTB,6 47 bcf PORTB,6