# HG changeset patch
# User heinrichsweikamp
# Date 1307957377 -7200
# Node ID 51baf8777b7354cf3419c78482d8f6c795734b1c
# Parent  be71e563ac098fb1b5b49f094ea462950ba1f728
testing, removing unused stuff

diff -r be71e563ac09 -r 51baf8777b73 code_part1/OSTC_code_asm_part1/MAIN.ASM
--- a/code_part1/OSTC_code_asm_part1/MAIN.ASM	Mon Jun 13 07:45:59 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/MAIN.ASM	Mon Jun 13 11:29:37 2011 +0200
@@ -68,10 +68,6 @@
 		btfsc	INTCON3,INT1IF				; switch right
 		call	switch_right_int
 
-; Test for race condition
-		btfsc	PIR1,TMR1IF					;Timer1 INT (external 32.768kHz Clock)
-		call	timer1int
-
 		movff   prod_temp+1,PRODH
 		movff   prod_temp+0,PRODL
 		movff	wreg_temp,WREG				;restore working register
diff -r be71e563ac09 -r 51baf8777b73 code_part1/OSTC_code_asm_part1/isr.asm
--- a/code_part1/OSTC_code_asm_part1/isr.asm	Mon Jun 13 07:45:59 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/isr.asm	Mon Jun 13 11:29:37 2011 +0200
@@ -185,6 +185,10 @@
 		cpfslt	TMR1H						; Did we miss a 1/16 second?
 		incf	timer1int_counter1,F		; Yes, add extra 1/16 second
 
+		movlw	0x10						; Timer1 int after 62.5ms (=16/second)
+		cpfslt	TMR1H						; Did we miss another 1/16 second?
+		incf	timer1int_counter1,F		; Yes, add another extra 1/16 second
+
 		movlw	0x08						; Timer1 int after 62.5ms (=16/second)
 		subwf	TMR1H,F			
 	
@@ -395,7 +399,7 @@
 		return
 		clrf		hours
 		incf		day,F
-; Test for race condition
+; test for race condition
 ;		movff		time_correction_value,secs			; Correct too slow clock
 						
 check_date:
diff -r be71e563ac09 -r 51baf8777b73 code_part1/OSTC_code_asm_part1/start.asm
--- a/code_part1/OSTC_code_asm_part1/start.asm	Mon Jun 13 07:45:59 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/start.asm	Mon Jun 13 11:29:37 2011 +0200
@@ -26,15 +26,7 @@
 	movlb	b'00000001'				; ram bank 1 selected
 	movff	STKPTR,temp10
 	clrf    temp10+1
-
 	call	init
-
-	read_int_eeprom	d'92'			; Read number of CF used in this firmware	
-	movlw	0xFF					; First start value
-	cpfseq	EEDATA					; Compare 
-	bra		start2					; Normal power-on/hard reset boot
-	bra		first_start				; Reset and jump to surfmode
-start2:
 	btfsc	divemode				; Reset from Divemode?
 	call	PLED_resetdebugger		; Yes! Something went wrong, show reset informations
 start3: