Mercurial > public > hwos_code
comparison 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 |
comparison
equal
deleted
inserted
replaced
77:131e6dd9e201 | 78:668b432dcae9 |
---|---|
312 MENU_END | 312 MENU_END |
313 | 313 |
314 do_reset_logbook: | 314 do_reset_logbook: |
315 clrf EEADRH ; Make sure to select eeprom bank 0 | 315 clrf EEADRH ; Make sure to select eeprom bank 0 |
316 clrf EEDATA | 316 clrf EEDATA |
317 read_int_eeprom .2 | |
318 write_int_eeprom .15 | |
319 read_int_eeprom .3 | |
320 write_int_eeprom .16 ; Copy number of dives | |
321 write_int_eeprom .2 | |
322 write_int_eeprom .3 ; Clear total dives | |
317 write_int_eeprom .4 | 323 write_int_eeprom .4 |
318 write_int_eeprom .5 | 324 write_int_eeprom .5 |
319 write_int_eeprom .6 ; Reset logbook pointers | 325 write_int_eeprom .6 ; Reset logbook pointers |
320 call ext_flash_erase_logbook ; And complete logbook (!) | 326 call ext_flash_erase_logbook ; And complete logbook (!) |
321 goto do_continue_main_menu ; back to menu | 327 goto do_continue_main_menu ; back to menu |