diff code_part1/OSTC_code_asm_part1/divemode.asm @ 357:562f1bc79f3c 64kByte Logbook

Bugfix: Wake-up into divemode with 1.91alpha
author Heinrichsweikamp
date Tue, 07 Jun 2011 13:06:14 +0200
parents 544a96faa9f3
children 88660a400338
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Mon Jun 06 18:50:26 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Tue Jun 07 13:06:14 2011 +0200
@@ -1337,11 +1337,12 @@
 	call	write_external_eeprom
 	movff	avr_rel_pressure_total+1,WREG	; Average Depth
 	call	write_external_eeprom
-	
-	clrf	WREG
-	call	write_external_eeprom			; Spare8
-	clrf	WREG
-	call	write_external_eeprom			; Spare7
+
+	movff	total_divetime_seconds+0,WREG	; Total dive time (Regardless of CF01)
+	call	write_external_eeprom
+	movff	total_divetime_seconds+1,WREG	; Total dive time (Regardless of CF01)
+	call	write_external_eeprom
+
 	clrf	WREG
 	call	write_external_eeprom			; Spare6
 	clrf	WREG
@@ -1718,6 +1719,8 @@
 	clrf	apnoe_secs
 	clrf	divemins+0
 	clrf	divemins+1
+	clrf 	total_divetime_seconds+0
+	clrf 	total_divetime_seconds+1
 	clrf	menupos3
 	bcf		menu3_active
 	clrf	divesecs