diff code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 415:d022c62a1df5

fixing issue with end-of-dive threshold in high-altitude mode simulator now works up to 120m depth fix internal logbook hung up on bad profile data
author heinrichsweikamp
date Sun, 17 Jul 2011 17:23:25 +0200
parents dd4a1aa96232
children 3abf9d7dafae
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_logbook.asm	Sat Jul 16 13:25:23 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu_logbook.asm	Sun Jul 17 17:23:25 2011 +0200
@@ -372,6 +372,12 @@
 	movff		xC+0,last_temperature+0	; 
 	movff		xC+1,last_temperature+1	; = Pixels/10m (For scale, draw any xx rows a scale-line)
 
+	movf		last_temperature+0,W
+	iorwf		last_temperature+1,W		; last_temperature:2 = Null?
+	bnz			display_profile_offset4		; No, continue
+	incf		last_temperature+1,F		; Yes, make last_temperature+1>1 to make "display_profile2e" working
+
+display_profile_offset4:
 	bsf			leftbind
 	output_16dp	d'3'					; max. depth
 	STRCAT      "m "