diff src/tft_outputs.asm @ 431:9500b2d3e32b

hunting a bug in the logbook...
author heinrichsweikamp
date Tue, 21 Jun 2016 17:20:44 +0200
parents 4b93354b7738
children 929feb0da4f5
line wrap: on
line diff
--- a/src/tft_outputs.asm	Tue Jun 21 12:44:19 2016 +0200
+++ b/src/tft_outputs.asm	Tue Jun 21 17:20:44 2016 +0200
@@ -3516,8 +3516,6 @@
 	clrf	waitms_temp                 ; Row offset
 tissue_saturation_graph_N2:
     movlw   dm_custom_tissue_diagram_top+.3        ; divemode
-	addwf	waitms_temp,W
-	movff	WREG,win_top                ; row top (0-239)
     rcall   tissue_saturation_graph_loop    ; Show one tissue
 	decfsz	wait_temp,F
 	bra		tissue_saturation_graph_N2
@@ -3529,9 +3527,6 @@
 	clrf	waitms_temp                 ; Row offset
 tissue_saturation_graph_He:
     movlw   dm_custom_tissue_diagram_top+.3+.22    ; divemode
-	addwf	waitms_temp,W
-	movff	WREG,win_top                ; row top (0-239)
-
     rcall   tissue_saturation_graph_loop    ; Show one tissue
 
 	decfsz	wait_temp,F
@@ -3539,6 +3534,9 @@
 	return
 
 tissue_saturation_graph_loop:
+    	addwf	waitms_temp,W
+	movff	WREG,win_top                ; row top (0-239)
+
     call	TFT_standard_color
 	incf	waitms_temp,F
 	movf	POSTINC2,W