diff code_part1/OSTC_code_asm_part1/menu_gassetup.asm @ 377:be71e563ac09 64kByte Logbook

First gas can be reset to 0m, test for timer1 race condition
author heinrichsweikamp
date Mon, 13 Jun 2011 07:45:59 +0200
parents ed26990716fe
children ab962c4b19d6
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_gassetup.asm	Sun Jun 12 21:27:07 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu_gassetup.asm	Mon Jun 13 07:45:59 2011 +0200
@@ -903,10 +903,13 @@
 	cpfslt	lo
 	movwf	lo					; limit to 99m
 
+	btfsc	second_FA			; Is first gas?
+	clrf	lo					; Yes, set to 0m
+
 	movf	decodata+0,W		; read current value 
 	addlw	d'28'				; offset in memory
 	movwf	EEADR
-	call	read_eeprom			; Low-value
+;	call	read_eeprom			; Low-value
 	movff	lo,EEDATA			; write result
 	call	write_eeprom		; save result in EEPROM