comparison 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
comparison
equal deleted inserted replaced
574:101fec6a6137 575:cbdcbbc91877
142 call check_switches_logbook 142 call check_switches_logbook
143 143
144 btfsc menubit2 144 btfsc menubit2
145 bra menu_battery_state_exit ; Exit 145 bra menu_battery_state_exit ; Exit
146 146
147 btfsc divemode
148 goto restart ; dive started!
149
150 btfsc onesecupdate 147 btfsc onesecupdate
151 call timeout_surfmode 148 call menu_check_dive_and_timeout ; "Goto restart" or sets sleepmode flag
152
153 btfsc onesecupdate
154 call set_dive_modes
155 149
156 bcf onesecupdate ; 1 sec. functions done 150 bcf onesecupdate ; 1 sec. functions done
157 151
158 btfsc sleepmode 152 btfsc sleepmode
159 bra menu_battery_state_exit 153 bra menu_battery_state_exit