diff code_part1/OSTC_code_asm_part1/altimeter.asm @ 384:904863f96582 64kByte Logbook

Work-Around for "Reset all" overwriting 0x00 to 0x04 in EEPROM Bank1
author heinrichsweikamp
date Sat, 18 Jun 2011 11:26:22 +0200
parents 797e2ac42d24
children 6e57b5bb98ce
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/altimeter.asm	Fri Jun 17 00:13:36 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/altimeter.asm	Sat Jun 18 11:26:22 2011 +0200
@@ -364,6 +364,7 @@
         movlw       4*(.49-.32) + 0x82  ; CF#49 low byte address in EEPROM
     	movwf	    EEADR
     	call	    write_eeprom
+    	clrf	    EEADRH				; Reset EEADRH for compatibility
     	bra         altimeter_menu_2
 
 ;---- Reset sea level pressure to reference ----------------------------------