diff src/ghostwriter.asm @ 39:e4e91fe8b09d

remember last customview in dive and surface mode
author mh@mh-THINK.fritz.box
date Thu, 15 Aug 2013 13:55:55 +0200
parents eca4a201d8cf
children 53a99a2dc6a1
line wrap: on
line diff
--- a/src/ghostwriter.asm	Thu Aug 15 13:30:05 2013 +0200
+++ b/src/ghostwriter.asm	Thu Aug 15 13:55:55 2013 +0200
@@ -293,6 +293,8 @@
 	movff	ext_flash_address+1,ext_flash_log_pointer+1
 	movff	ext_flash_address+2,ext_flash_log_pointer+2	; Save end-of-profile pointer to store in header
 
+    movff   menupos3,customview_divemode            ; store last customview
+
 	btfss	realdive					; dive longer then one minute
 	goto	ghostwriter_end_dive_common				; No, discard everything