diff code_part1/OSTC_code_asm_part1/divemode.asm @ 253:3a4096f32526

show CNS in logbook for all dives made with V1.84beta and later
author heinrichsweikamp
date Sun, 03 Apr 2011 11:46:06 +0200
parents f0cba9cff25c
children 8f20e8948b97
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Wed Mar 30 02:23:47 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Sun Apr 03 11:46:06 2011 +0200
@@ -1233,13 +1233,9 @@
 	read_int_eeprom	d'26'			; Read Salinity from EEPROM
 	movf	EEDATA,W
 	call	write_external_eeprom	; Store Salinity to Dive
-	
-	GETCUSTOM8	d'33'				; GF_hi
-	movwf	temp1
-	swapf	temp1,F					; GF_hi -> Bit7-4
-	GETCUSTOM8	d'32'				; GF_lo
-	addwf	temp1,W					; Add GF_lo -> Bit 3-0
-	call	write_external_eeprom	; Stores GF_hi and GF_lo
+
+	movff	char_O_CNS_fraction,WREG	; copy into bank1
+	call	write_external_eeprom		; Stores CNS%
 
 	movlw	0xFB						; Header stop
 	call	write_external_eeprom