comparison src/menu_tree.asm @ 64:40a5cc0664ed

Merge
author heinrichsweikamp
date Fri, 10 Jan 2014 10:13:53 +0100
parents e7c7c7eeea58 5c4d4a42e7a0
children 00636132cca6
comparison
equal deleted inserted replaced
62:e7c7c7eeea58 64:40a5cc0664ed
275 275
276 ;============================================================================= 276 ;=============================================================================
277 ; Reset and confirmation menu. 277 ; Reset and confirmation menu.
278 278
279 do_reset_menu: 279 do_reset_menu:
280 MENU_BEGIN tResetMenu, .5 280 MENU_BEGIN tResetMenu, .6
281 MENU_CALL tExit, do_return_settings 281 MENU_CALL tExit, do_return_settings
282 MENU_CALL tReboot, do_reset_menu2 ; Confirm 282 MENU_CALL tReboot, do_reset_menu2 ; Confirm
283 MENU_CALL tResetDeco, do_reset_menu3 ; Confirm 283 MENU_CALL tResetDeco, do_reset_menu3 ; Confirm
284 MENU_CALL tResetSettings, do_reset_menu4 ; Confirm 284 MENU_CALL tResetSettings, do_reset_menu4 ; Confirm
285 MENU_CALL tResetLogbook, do_reset_menu5 ; Confirm
285 MENU_CALL tResetBattery, new_battery_menu ; New Battery submenu 286 MENU_CALL tResetBattery, new_battery_menu ; New Battery submenu
286 MENU_END 287 MENU_END
287 288
288 do_reset_menu2: 289 do_reset_menu2:
289 MENU_BEGIN tResetMenu2, .2 290 MENU_BEGIN tResetMenu2, .2
300 do_reset_menu4: 301 do_reset_menu4:
301 MENU_BEGIN tResetMenu2, .2 302 MENU_BEGIN tResetMenu2, .2
302 MENU_CALL tAbort, do_continue_menu_3stack 303 MENU_CALL tAbort, do_continue_menu_3stack
303 MENU_CALL tResetSettings, do_reset_settings ; Reset all settings 304 MENU_CALL tResetSettings, do_reset_settings ; Reset all settings
304 MENU_END 305 MENU_END
306
307 do_reset_menu5:
308 MENU_BEGIN tResetMenu2, .2
309 MENU_CALL tAbort, do_continue_menu_3stack
310 MENU_CALL tResetLogbook, do_reset_logbook ; Reset logbook
311 MENU_END
312
313 do_reset_logbook:
314 clrf EEADRH ; Make sure to select eeprom bank 0
315 clrf EEDATA
316 write_int_eeprom .4
317 write_int_eeprom .5
318 write_int_eeprom .6 ; Reset logbook pointers
319 call ext_flash_erase_logbook ; And complete logbook (!)
320 goto do_continue_main_menu ; back to menu
305 321
306 322
307 do_reset_deco: 323 do_reset_deco:
308 movlw d'79' ; 79% N2 324 movlw d'79' ; 79% N2
309 movff WREG,char_I_N2_ratio 325 movff WREG,char_I_N2_ratio