diff code_part1/OSTC_code_asm_part1/menu_reset.asm @ 685:aebb6d039249

Use 4byte in EEPROM for diluents (Same as OC gases) Show active gas indicator below first gas in surfacemode
author heinrichsweikamp
date Sat, 26 Jan 2013 14:11:07 +0100
parents 6e456a6398e0
children 82f71a73f450
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_reset.asm	Sat Jan 26 10:41:35 2013 +0100
+++ b/code_part1/OSTC_code_asm_part1/menu_reset.asm	Sat Jan 26 14:11:07 2013 +0100
@@ -498,18 +498,23 @@
 	rcall	reset_gas               ; saves default value for gas #5
 	rcall	reset_gas               ; saves current value for gas #6
 
-	movlw	d'95'					; address of first diluent-1
+	movlw	d'94'					; address of first diluent-1
 	movwf	EEADR
 	rcall	reset_gas               ; saves current value for diluent #1
+	rcall	reset_gas               ; saves default value for diluent #1
 	rcall	reset_gas               ; saves current value for diluent #2
+	rcall	reset_gas               ; saves default value for diluent #2
 	rcall	reset_gas               ; saves current value for diluent #3
+	rcall	reset_gas               ; saves default value for diluent #3
 	rcall	reset_gas               ; saves current value for diluent #4
+	rcall	reset_gas               ; saves default value for diluent #4
 	rcall	reset_gas               ; saves current value for diluent #5
+	rcall	reset_gas               ; saves default value for diluent #5
 
     movlw   .1
     movwf   EEDATA
     write_int_eeprom    .33         ; First Gas (1-5)
-    write_int_eeprom    .106        ; First Diluent (1-5)
+    write_int_eeprom    .116        ; First Diluent (1-5)
 	return
 
 ; Write WREG:lo twice, w/o any type clearing, pre-incrementing EEADR