diff src/divemode.asm @ 308:7733eb0055a0

VSI text v2 merged from new_screen_layout into default
author Janos Kovacs <kovjanos@gmail.com>
date Fri, 05 Jun 2015 13:37:13 +0200
parents 14719662fb95
children 453a3d13570f
line wrap: on
line diff
--- a/src/divemode.asm	Tue Jun 02 16:34:02 2015 +0200
+++ b/src/divemode.asm	Fri Jun 05 13:37:13 2015 +0200
@@ -447,7 +447,7 @@
 
 calc_velocity:								; called every two seconds
 	btfss	divemode						
-	bra		do_not_display_velocity			; display velocity only in divemode (Not at the surface after dive)
+	return                      			; display velocity only in divemode (Not at the surface after dive)
 
 calc_velocity2:
     SAFE_2BYTE_COPY amb_pressure, sub_a
@@ -476,21 +476,9 @@
 	movwf	divA+0						; divA=99
 
 calc_velocity3:
-	movlw	velocity_warning_level_1	; lowest threshold for display vertical velocity
-	subwf	divA+0,W					; 
-	btfss	STATUS,C
-	bra		do_not_display_velocity
-
-	bsf		display_velocity
 	call	TFT_display_velocity		; With divA+0 = m/min...
 	return
 
-do_not_display_velocity:
-	btfss	display_velocity			; Velocity was not displayed, do not delete
-	return
-	bcf		display_velocity			; Velocity was displayed, delete velocity now
-	call	TFT_display_velocity_clear
-	return
 
 ;=============================================================================