diff src/ghostwriter.asm @ 389:9175429bdeba

CHANGE: Logbook now shows end-of-dive date and time for dives made with firmware <1.92 indicated by an icon in the logbook CHANGE: Logbook shows start-of-dive date and time for dives made with firmware >=1.92 BUGFIX: Text alignment in logbook
author heinrichsweikamp
date Tue, 27 Oct 2015 13:45:10 +0100
parents 62c7af4795b0
children 23b58c4bc6aa
line wrap: on
line diff
--- a/src/ghostwriter.asm	Mon Oct 19 15:06:59 2015 +0200
+++ b/src/ghostwriter.asm	Tue Oct 27 13:45:10 2015 +0100
@@ -446,15 +446,15 @@
     movf    ext_flash_dive_counter+2,W
 	rcall	ghostwrite_byte_header	; WREG -> Header in ext. flash
 
-	movf	year,W                     ; Date
+	movff	start_year,WREG         ; Date
 	rcall	ghostwrite_byte_header	; WREG -> Header in ext. flash
-	movf	month,W
+	movff	start_month,WREG
 	rcall	ghostwrite_byte_header	; WREG -> Header in ext. flash
-	movf	day,W
+	movff	start_day,WREG
 	rcall	ghostwrite_byte_header	; WREG -> Header in ext. flash
-	movf	hours,W						; End of dive time
+	movff	start_hours,WREG    	; Start of dive time
 	rcall	ghostwrite_byte_header	; WREG -> Header in ext. flash
-	movf	mins,W
+	movff	start_mins,WREG
 	rcall	ghostwrite_byte_header	; WREG -> Header in ext. flash
 
 	btfss	FLAG_apnoe_mode				; Store apnoe max or normal max (Which is only max from the last descent)