changeset 392:8e272339fb68 64kByte Logbook

1.91beta RC
author heinrichsweikamp
date Tue, 21 Jun 2011 17:37:32 +0200
parents ee5e1c65657c
children 392c14a1d6d1
files code_part1/OSTC_code_asm_part1/changelog.txt code_part1/OSTC_code_asm_part1/isr.asm code_part1/OSTC_code_asm_part1/menu_reset.asm code_part1/OSTC_code_asm_part1/start.asm
diffstat 4 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/changelog.txt	Sun Jun 19 20:22:52 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/changelog.txt	Tue Jun 21 17:37:32 2011 +0200
@@ -6,6 +6,7 @@
 BUGFIX: Logbook time scale (squares are 10min * 10m)
 BUGFIX: Bühlmann half-times rounded to the minute
 BUGFIX: Protect again rare race contition on pressure/temperature
+BUGFIX: Time is now accurate
 CHANGE: CF02 now allows delay of more then 240seconds
 CHANGE: First gas do not reset change depth
 CHANGE: Logbook format 21: store & shows dive model (sat/desat or GF_low/high factors),
--- a/code_part1/OSTC_code_asm_part1/isr.asm	Sun Jun 19 20:22:52 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/isr.asm	Tue Jun 21 17:37:32 2011 +0200
@@ -399,7 +399,7 @@
 		return
 		clrf		hours
 		incf		day,F
-;		movff		time_correction_value,secs			; Correct too slow clock
+		movff		time_correction_value,secs			; Correct too slow clock
 						
 check_date:
 		movff		month,isr_divB		; new month?
--- a/code_part1/OSTC_code_asm_part1/menu_reset.asm	Sun Jun 19 20:22:52 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu_reset.asm	Tue Jun 21 17:37:32 2011 +0200
@@ -169,7 +169,7 @@
 	CF_DEFAULT    CF_CENTI,     d'161', d'100', d'161'  ; color_warn_ppo2_cbar		ppO2 warn
 
 	CF_DEFAULT    CF_INT8,	    d'15',  d'7',   d'20'	; color_warn_celocity_mmin	warn at xx m/min
-	CF_DEFAULT    CF_SEC+CF_NEG,d'42',  -d'120',d'120'  ; time_correction_value_default	Adds to Seconds on Midnight
+	CF_DEFAULT    CF_SEC+CF_NEG,d'0',  -d'120' ,d'120'  ; time_correction_value_default	Adds to Seconds on Midnight
 	CF_DEFAULT    CF_BOOL,      d'0',   0,      0 		; CF#49 Show Altimeter in surface mode
 	CF_DEFAULT    CF_BOOL,     	d'0',   0,      0       ; CF50 Show Log-Marker
 	CF_DEFAULT    CF_BOOL,	    d'1',   0,      0 		; CF51 Show Stopwatch
--- a/code_part1/OSTC_code_asm_part1/start.asm	Sun Jun 19 20:22:52 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/start.asm	Tue Jun 21 17:37:32 2011 +0200
@@ -128,6 +128,15 @@
 	movwf	EEDATA		
 	call	write_eeprom			; write version y
 	clrf	EEADRH					; Reset EEADRH
+
+; Reset CF48
+	movlw	d'1'
+	movwf	EEADRH					; Bank1
+	clrf	EEDATA					; =0
+	write_int_eeprom	d'191'
+	write_int_eeprom	d'192'	
+	write_int_eeprom	d'193'
+	write_int_eeprom	d'194'		; Reset Default and Current Value to zero
 ;	goto	reset_all_cf			; resets all custom functions bank0 and bank1 and jumps to "restart"
 			
 restart: