# HG changeset patch
# User heinrichsweikamp
# Date 1347271334 -7200
# Node ID 6cbdfd1b9dcf3890bc892e7dbf81da905b0429fb
# Parent  242139da29f25f5c5d9724c9b0b7aaa3b9b1f484
NEW: CF29 stored in divelog header (Byte 52)

diff -r 242139da29f2 -r 6cbdfd1b9dcf code_part1/OSTC_code_asm_part1/changelog.txt
--- a/code_part1/OSTC_code_asm_part1/changelog.txt	Mon Sep 10 08:42:56 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/changelog.txt	Mon Sep 10 12:02:14 2012 +0200
@@ -2,6 +2,7 @@
 BETA Version - Do NOT use for diving!
 TODO: Text 61 update
 NEW: Divisor Decoplan (CF25) stores entire decoplan in logbook
+NEW: CF29 stored in divelog header (Byte 52)
 
 New in 2.51:
 BETA Version - Do NOT use for diving!
diff -r 242139da29f2 -r 6cbdfd1b9dcf code_part1/OSTC_code_asm_part1/divemode.asm
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Mon Sep 10 08:42:56 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Mon Sep 10 12:02:14 2012 +0200
@@ -1519,8 +1519,9 @@
 	movf	EEDATA,W
 	call	write_external_eeprom			; write WREG into external memory
 
-	clrf	WREG
-	call	write_external_eeprom			; Spare3
+	GETCUSTOM8	d'29'                       ; Last decostop [m]
+	call	write_external_eeprom			; write WREG into external memory
+
 	clrf	WREG
 	call	write_external_eeprom			; Spare2
 	clrf	WREG
diff -r 242139da29f2 -r 6cbdfd1b9dcf docu/ostc_interface_description.odt
Binary file docu/ostc_interface_description.odt has changed