diff src/menu_tree.asm @ 78:668b432dcae9

BUGFIX: Reset Logbook did not reset Logbook TOC properly
author mh@mh-THINK.localdomain
date Wed, 26 Feb 2014 11:58:03 +0100
parents a5ea132770db
children 3274e87fd027
line wrap: on
line diff
--- a/src/menu_tree.asm	Thu Feb 20 10:12:45 2014 +0100
+++ b/src/menu_tree.asm	Wed Feb 26 11:58:03 2014 +0100
@@ -314,6 +314,12 @@
 do_reset_logbook:
 	clrf    EEADRH                      ; Make sure to select eeprom bank 0
 	clrf	EEDATA
+    read_int_eeprom     .2
+    write_int_eeprom    .15         
+    read_int_eeprom     .3
+    write_int_eeprom    .16             ; Copy number of dives
+    write_int_eeprom    .2
+    write_int_eeprom    .3              ; Clear total dives
 	write_int_eeprom	.4
 	write_int_eeprom	.5
 	write_int_eeprom	.6              ; Reset logbook pointers