diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 287:5f2fe81fde9f

Don't force gas with depth>0 to be active.
author JeanDo
date Thu, 21 Apr 2011 04:16:00 +0200
parents 5351d47ee28a
children 6d8a2550c9ea
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Wed Apr 20 07:51:11 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Thu Apr 21 04:16:00 2011 +0200
@@ -1229,7 +1229,8 @@
     cpfsgt  EEDATA                      ; is depth > 0 ?
     bra     PLED_grey_gas
 
-	read_int_eeprom		d'27'	        ; read flag register
+    clrf    EEADRH                      ; Lower page of EEPROM.
+    read_int_eeprom		d'27'	        ; read flag register
 PLED_grey_inactive_gas1:
 	rrcf	EEDATA			            ; roll flags into carry
 	decfsz	lo,F			            ; max. 5 times...