changeset 127:245de99d1d15

FIX SetPoint list color.
author JeanDo
date Tue, 04 Jan 2011 02:49:15 +0100
parents ed275788a291
children 4c588c3d1f12 06c4899ddb4b
files code_part1/OSTC_code_asm_part1/pled_outputs.asm
diffstat 1 files changed, 7 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Tue Jan 04 01:55:49 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Tue Jan 04 02:49:15 2011 +0100
@@ -1164,6 +1164,7 @@
 	WIN_LEFT	.90
 	WIN_FONT	FT_SMALL
 	bsf		leftbind
+	call    PLED_standard_color
 
 	; list three SP in Gaslist
 	movlw	d'35'				; 36 = current SP position in EEPROM
@@ -1201,17 +1202,13 @@
 	decf	active_gas,W				; Gas 0-4
 	mullw	d'4'
 	movf	PRODL,W			
-	addlw	d'7'						; = address for He ratio
-	movwf	EEADR
-	call	read_eeprom					; Read He ratio
-	movff	EEDATA,hi		; And copy into hold register
-	decf	active_gas,W				; Gas 0-4
-	mullw	d'4'
-	movf	PRODL,W			
 	addlw	d'6'						; = address for O2 ratio
 	movwf	EEADR
-	call	read_eeprom					; Read O2 ratio
-	movff	EEDATA, lo		; O2 ratio
+	call	read_eeprom                 ; Read O2 ratio
+	movff	EEDATA, lo                  ; O2 ratio
+	incf	EEADR,F                     ; = address for He
+	call	read_eeprom					; Read He ratio
+	movff	EEDATA,hi                   ; And copy into hold register
 
 	WIN_LEFT	.90
 	WIN_TOP		.100
@@ -2477,6 +2474,7 @@
 	WIN_LEFT	.100
 	WIN_FONT	FT_SMALL
 	bsf		leftbind
+	call    PLED_standard_color
 
 	; list three SP in Gaslist
 	movlw	d'35'				; 36 = current SP position in EEPROM