diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 296:2986e7cdb68c

Apply salinity for ceiling warning
author Heinrichsweikamp
date Thu, 28 Apr 2011 18:51:48 +0200
parents 21a0f7393468
children ceedf078b2d8
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Thu Apr 28 18:14:02 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Thu Apr 28 18:51:48 2011 +0200
@@ -143,10 +143,13 @@
 	cpfseq	lo					; =1?
 	bra		PLED_color_code_ceiling1	; No, Set to default color
 
+	movff	rel_pressure+1,hi
+	movff	rel_pressure+0,lo
+	call	adjust_depth_with_salinity			; computes salinity setting into lo:hi [mBar]
+	movff	hi,xA+1
+	movff	lo,xA+0
 	movff	char_O_first_deco_depth,lo  ; Ceiling in m
 	decf	lo,F	                    ; -1
-	movff	rel_pressure+1,xA+1
-	movff	rel_pressure+0,xA+0
 	movlw	LOW		d'100'
 	movwf	xB+0
 	clrf	xB+1						; Devide/100 -> xC+0 = Depth in m