# HG changeset patch
# User heinrichsweikamp
# Date 1309325527 -7200
# Node ID cd48cdb6e1aeedca2ed5250ce565dffda2e6afcf
# Parent  5b560559bc1a5cb8bde401b7e1f60724ff079884
Add a setpoint change to the first depth sample in CC mode

diff -r 5b560559bc1a -r cd48cdb6e1ae code_part1/OSTC_code_asm_part1/divemode.asm
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Tue Jun 28 22:37:02 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Wed Jun 29 07:32:07 2011 +0200
@@ -48,6 +48,9 @@
 ; Startup Tasks for deco modes
 	call	PLED_display_ndl_mask		; display "no stop" if not in gauge or apnoe mode
 
+	btfsc	FLAG_const_ppO2_mode		; only in const_ppO2_mode
+	bsf		setpoint_changed			; Add a setpoint change to the first depth sample in CC mode
+
 diveloop_loop:		; The diveloop starts here
 	btfss	onesecupdate					; tasks any new second
 	bra		diveloop_loop3