diff src/divemode.asm @ 318:6d8c82fe5a01 new_screen_layout

VSIbar #3d: more filter, neg_flag_velocity close to calculation, debug color for descend bar
author janos_kovacs <kovjanos@gmail.com>
date Thu, 11 Jun 2015 15:16:42 +0100
parents 4f83470dcece
children 3d43da7acfe1
line wrap: on
line diff
--- a/src/divemode.asm	Thu Jun 11 13:40:14 2015 +0100
+++ b/src/divemode.asm	Thu Jun 11 15:16:42 2015 +0100
@@ -458,6 +458,10 @@
 
 	call	subU16						; sub_c = amb_pressure - last_pressure
 
+    bcf     neg_flag_velocity
+    btfsc   neg_flag
+    bsf     neg_flag_velocity
+
 	movff	sub_c+0,xA+0
 	movff	sub_c+1,xA+1
 	movlw	d'39'						; 77 when called every second....