changeset 396:61984f91174a

place total dives backup counter in eeprom 16:17
author heinrichsweikamp
date Mon, 23 Nov 2015 12:16:38 +0100
parents 9f4fa02ca0a0
children 56f3c7026762
files src/comm.asm src/menu_tree.asm
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/comm.asm	Mon Nov 16 11:04:27 2015 +0100
+++ b/src/comm.asm	Mon Nov 23 12:16:38 2015 +0100
@@ -276,8 +276,8 @@
 	write_int_eeprom	.6
 	write_int_eeprom	.2				; Also, delete total dive counter
 	write_int_eeprom	.3
-    write_int_eeprom    .15
-    write_int_eeprom    .16             ; And the backup counter, too
+    write_int_eeprom    .16
+    write_int_eeprom    .17             ; And the backup counter, too
 	call	ext_flash_erase_logbook		; And complete logbook (!)
 	bra		comm_download_mode0			; Done.
 
--- a/src/menu_tree.asm	Mon Nov 16 11:04:27 2015 +0100
+++ b/src/menu_tree.asm	Mon Nov 23 12:16:38 2015 +0100
@@ -464,9 +464,9 @@
 	clrf    EEADRH                      ; Make sure to select eeprom bank 0
 	clrf	EEDATA
     read_int_eeprom     .2
-    write_int_eeprom    .15         
+    write_int_eeprom    .16
     read_int_eeprom     .3
-    write_int_eeprom    .16             ; Copy number of dives
+    write_int_eeprom    .17             ; Copy number of dives
     clrf	EEDATA
     write_int_eeprom    .2
     write_int_eeprom    .3              ; Clear total dives