# HG changeset patch
# User heinrichsweikamp
# Date 1314880784 -7200
# Node ID 770456638c666e249c866002c41c1d7397d885f1
# Parent  d300e6ad6f668fded833f5bd433bf900f96e108d
fix reset gas with non-initialised eeprom

diff -r d300e6ad6f66 -r 770456638c66 code_part1/OSTC_code_asm_part1/menu_reset.asm
--- a/code_part1/OSTC_code_asm_part1/menu_reset.asm	Thu Sep 01 12:22:46 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu_reset.asm	Thu Sep 01 14:39:44 2011 +0200
@@ -437,8 +437,13 @@
 ; Write WREG:lo twice, w/o any type clearing, pre-incrementing EEADR
 reset_gas:
     movwf   lo
-    rcall   reset_eeprom_value      ; First pair
-    goto    reset_eeprom_value      ; Second pair.
+	incf	EEADR,F
+	movff	lo, EEDATA				; Lowbyte Default value
+	call	write_eeprom
+	incf	EEADR,F
+	movff	hi, EEDATA				; Highbyte default value
+	call    write_eeprom
+	return
 
 reset_customfunction:
     tblrd*+