diff code_part1/OSTC_code_asm_part1/menu_battery.asm @ 575:cbdcbbc91877

some code cleaning
author heinrichsweikamp
date Sat, 21 Apr 2012 15:08:09 +0200
parents 6e57b5bb98ce
children ab2686087bce
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_battery.asm	Sat Apr 21 13:58:30 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu_battery.asm	Sat Apr 21 15:08:09 2012 +0200
@@ -144,14 +144,8 @@
 	btfsc	menubit2
 	bra		menu_battery_state_exit		; Exit
 
-	btfsc	divemode
-	goto	restart			; dive started!
-
 	btfsc	onesecupdate
-	call	timeout_surfmode
-
-	btfsc	onesecupdate
-	call	set_dive_modes
+	call	menu_check_dive_and_timeout	; "Goto restart" or sets sleepmode flag
 
 	bcf		onesecupdate	; 1 sec. functions done